:root {
    --bg: #07070b;
    --card: rgba(255, 255, 255, 0.04);
    --text: #f8fafc;
    --muted: #a1a1aa;
    --line: rgba(255, 255, 255, 0.08);
    --accent: #ff4d8d;
    --accent-2: #8b5cf6;
    --accent-3: #22d3ee;
}

* { box-sizing: border-box; }

/* Messages: light, compact conversation surface */
body.messages-page.messages-page.messages-page {
    overflow-x: hidden;
    background: #f7f7f9 !important;
    color: #17181b !important;
}

/* Search relationship states keep the existing card dimensions and only expose the action state. */
body.search-page .search-action.is-state {
    cursor: default;
    opacity: 0.82;
}

body.search-page .search-action--add.is-state {
    background: #fff !important;
    border-color: #e7c9e8 !important;
    color: #8f1fa5 !important;
}

body.search-page .search-action--icon.is-favorite {
    background: linear-gradient(135deg, #7c3aed, #ec1980) !important;
    border-color: transparent !important;
    color: #fff !important;
}

body.search-page .search-action.is-loading {
    position: relative;
    cursor: wait;
    color: transparent !important;
    pointer-events: none;
    opacity: 0.76;
}

body.search-page .search-action.is-loading::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    color: #a21caf;
    animation: search-action-spin 0.7s linear infinite;
}

@keyframes search-action-spin {
    to { transform: rotate(360deg); }
}

body.search-page .search-action-toast {
    position: fixed;
    z-index: 1000;
    left: 50%;
    bottom: calc(76px + env(safe-area-inset-bottom));
    width: max-content;
    max-width: min(420px, calc(100vw - 32px));
    padding: 11px 16px;
    border: 1px solid #dfe3ea;
    border-radius: 999px;
    background: #fff;
    color: #24262b;
    box-shadow: 0 10px 28px rgba(30, 20, 55, 0.16);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity 160ms ease, transform 160ms ease;
}

body.search-page .search-action-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.search-page .search-action-toast.is-success {
    border-color: #d8f0df;
    color: #18733b;
}

body.search-page .search-action-toast.is-error {
    border-color: #f0cfd8;
    color: #a51f43;
}

/* Friendship requests share the search surface and remain compact on mobile. */
body.search-page .search-friend-requests {
    display: grid;
    gap: 14px;
    margin: 14px 0;
    padding: 16px;
}

body.search-page .search-friend-requests__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.search-page .search-friend-requests__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #9b1db1;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .07em;
    text-transform: uppercase;
}

body.search-page .search-friend-requests h2 {
    margin: 0;
    color: #24212b;
    font-size: 1.02rem;
}

body.search-page .search-friend-requests__count {
    display: grid;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    place-items: center;
    border-radius: 999px;
    background: #f8eafb;
    color: #921ca6;
    font-size: .78rem;
    font-weight: 900;
}

body.search-page .search-friend-requests__list {
    display: grid;
    gap: 9px;
}

body.search-page .search-friend-request {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid #eee0f0;
    border-radius: 13px;
    background: #fffaff;
}

body.search-page .search-friend-request__profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

body.search-page .search-friend-request__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #a72dd0, #ed2188);
    color: #fff;
    font-weight: 900;
}

body.search-page .search-friend-request__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.search-page .search-friend-request__meta {
    display: grid;
    min-width: 0;
    gap: 3px;
}

body.search-page .search-friend-request__meta strong,
body.search-page .search-friend-request__meta small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.search-page .search-friend-request__meta strong {
    color: #24212b;
    font-size: .9rem;
}

body.search-page .search-friend-request__meta small {
    color: #777484;
    font-size: .76rem;
}

body.search-page .search-friend-request__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

body.search-page .search-friend-response {
    display: inline-flex;
    gap: 5px;
    margin-left: 5px;
    vertical-align: middle;
}

body.search-page .search-friend-response__button {
    padding: 7px 9px;
    border: 1px solid #e4c7e9;
    border-radius: 999px;
    background: #fff;
    color: #8b1ba1;
    cursor: pointer;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
}

body.search-page .search-friend-response__button.is-accept {
    border-color: transparent;
    background: linear-gradient(135deg, #8f35df, #e22991);
    color: #fff;
}

body.search-page .search-friend-response__button.is-decline {
    color: #8b405e;
}

@media (max-width: 620px) {
    body.search-page .search-friend-requests {
        padding: 13px;
    }

    body.search-page .search-friend-request {
        align-items: flex-start;
        flex-direction: column;
    }

    body.search-page .search-friend-request__profile,
    body.search-page .search-friend-request form,
    body.search-page .search-friend-request__actions {
        width: 100%;
    }

    body.search-page .search-friend-request__actions {
        justify-content: stretch;
    }

    body.search-page .search-friend-request__actions .btn {
        flex: 1 1 0;
    }

    body.search-page .search-friend-response {
        display: flex;
        margin: 7px 0 0;
    }
}

/* Search result cards: compact, uniform profile and media thumbnails. */
body.search-page .search-result__avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

body.search-page .search-result__gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
}

body.search-page .search-result__photo,
body.search-page .search-result__photo img {
    width: 100%;
    height: clamp(76px, 18vw, 116px) !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    object-fit: cover;
}

/* Dedicated notification center: no feed styles or post cards are involved. */
body.notifications-page .notifications-shell {
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-bottom: 116px;
}

body.notifications-page .notifications-shell__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.notifications-page .notifications-shell__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #9b1db1;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.notifications-page .notifications-shell h1 {
    margin: 0;
    color: #16181d;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

body.notifications-page .notifications-shell__head p {
    margin: 7px 0 0;
    color: #6a7180;
    font-size: .92rem;
}

body.notifications-page .notifications-shell__count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #efc9ee;
    border-radius: 999px;
    background: #fff7ff;
    color: #941ba8;
    font-size: .78rem;
    font-weight: 800;
}

body.notifications-page .notifications-list {
    display: grid;
    gap: 10px;
}

body.notifications-page .notification-item {
    display: grid;
    grid-template-columns: 38px 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #e4e5eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 28, 60, .05);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body.notifications-page .notification-item.is-unread {
    border-color: #dca8df;
    box-shadow: 0 5px 18px rgba(155, 29, 177, .10);
}

body.notifications-page .notification-item__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #f8eafb;
    color: #a21caf;
    font-size: 1.05rem;
    font-weight: 900;
}

body.notifications-page .notification-item__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b35df, #ed2991);
    color: #fff;
    font-weight: 900;
}

body.notifications-page .notification-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.notifications-page .notification-item__content {
    min-width: 0;
}

body.notifications-page .notification-item__heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.notifications-page .notification-item__heading strong {
    color: #202126;
    font-size: .95rem;
}

body.notifications-page .notification-item__unread {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f7dff6;
    color: #9620aa;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.notifications-page .notification-item__content p {
    margin: 5px 0 4px;
    color: #555d6b;
    font-size: .88rem;
    line-height: 1.45;
}

body.notifications-page .notification-item__content small {
    color: #8a909b;
    font-size: .75rem;
}

body.notifications-page .notification-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

body.notifications-page .notification-item__result {
    display: inline-block;
    margin-top: 10px;
    color: #188044;
    font-size: .8rem;
    font-weight: 800;
}

body.notifications-page .notifications-empty {
    padding: 58px 22px;
    border: 1px dashed #dcbbe2;
    border-radius: 18px;
    background: #fffaff;
    text-align: center;
}

body.notifications-page .notifications-empty__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    background: #f4e5fa;
    color: #a21caf;
    font-size: 1.25rem;
    font-weight: 900;
}

body.notifications-page .notifications-empty strong {
    color: #28202c;
}

body.notifications-page .notifications-empty p {
    margin: 7px 0 0;
    color: #737987;
    font-size: .9rem;
}

body.notifications-page .notifications-more {
    display: block;
    min-width: 130px;
    margin: 16px auto 0;
}

@media (max-width: 620px) {
    body.notifications-page .notifications-shell {
        width: calc(100% - 20px);
        margin-top: 18px;
    }

    body.notifications-page .notifications-shell__head {
        gap: 10px;
    }

    body.notifications-page .notifications-shell__head p {
        font-size: .84rem;
    }

    body.notifications-page .notification-item {
        grid-template-columns: 34px 40px minmax(0, 1fr);
        gap: 9px;
        padding: 13px 11px;
    }

    body.notifications-page .notification-item__icon {
        width: 34px;
        height: 34px;
    }

    body.notifications-page .notification-item__avatar {
        width: 40px;
        height: 40px;
    }
}

/* Confirmação de exclusão das notificações, sem confirm() nativo. */
body.notifications-page .notification-confirm[hidden] {
    display: none !important;
}

body.notifications-page .notification-confirm {
    position: fixed;
    z-index: 1600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

body.notifications-page .notification-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 13, 28, .42);
    backdrop-filter: blur(2px);
    animation: notification-confirm-fade .18s ease both;
}

body.notifications-page .notification-confirm__panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    padding: 22px 22px 18px;
    border: 1px solid #eadff0;
    border-radius: 18px;
    background: #fff;
    color: #17181d;
    box-shadow: 0 22px 60px rgba(44, 20, 56, .22);
    animation: notification-confirm-in .18s ease both;
}

body.notifications-page .notification-confirm__panel h2 {
    margin: 0;
    color: #17181d;
    font-size: 1.02rem;
    line-height: 1.25;
}

body.notifications-page .notification-confirm__panel p {
    margin: 7px 0 18px;
    color: #6f737e;
    font-size: .82rem;
    line-height: 1.45;
}

body.notifications-page .notification-confirm__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body.notifications-page .notification-confirm__actions button {
    min-width: 92px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font: inherit;
    font-size: .78rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

body.notifications-page .notification-confirm__cancel {
    border: 1px solid #e1e3e8;
    background: #f7f8fa;
    color: #68707c;
}

body.notifications-page .notification-confirm__delete {
    border: 0;
    background: linear-gradient(135deg, #8d16f5, #ed1689);
    color: #fff;
    box-shadow: 0 7px 16px rgba(210, 27, 120, .2);
}

body.notifications-page .notification-confirm__actions button:hover,
body.notifications-page .notification-confirm__actions button:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

body.notifications-page .notification-confirm__cancel:hover,
body.notifications-page .notification-confirm__cancel:focus-visible {
    background: #f3eaf7;
    color: #8d168f;
}

body.notifications-page .notification-confirm__delete:hover,
body.notifications-page .notification-confirm__delete:focus-visible {
    box-shadow: 0 9px 20px rgba(210, 27, 120, .28);
}

body.notifications-page .notification-confirm__actions button:disabled {
    cursor: wait;
    opacity: .65;
    transform: none;
}

@keyframes notification-confirm-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes notification-confirm-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    body.notifications-page .notification-confirm {
        padding: 14px;
    }

    body.notifications-page .notification-confirm__panel {
        width: min(340px, 100%);
        padding: 19px 18px 16px;
        border-radius: 16px;
    }

    body.notifications-page .notification-confirm__panel p {
        margin-bottom: 15px;
        font-size: .78rem;
    }

    body.notifications-page .notification-confirm__actions button {
        min-width: 86px;
        min-height: 38px;
    }
}

/* Dedicated notification center: no feed styles or post cards are involved. */
body.notifications-page .notifications-shell {
    width: min(760px, calc(100% - 32px));
    margin: 28px auto 0;
    padding-bottom: 116px;
}

body.notifications-page .notifications-shell__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

body.notifications-page .notifications-shell__eyebrow {
    display: inline-block;
    margin-bottom: 7px;
    color: #9b1db1;
    font-size: .72rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.notifications-page .notifications-shell h1 {
    margin: 0;
    color: #16181d;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

body.notifications-page .notifications-shell__head p {
    margin: 7px 0 0;
    color: #6a7180;
    font-size: .92rem;
}

body.notifications-page .notifications-shell__count {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid #efc9ee;
    border-radius: 999px;
    background: #fff7ff;
    color: #941ba8;
    font-size: .78rem;
    font-weight: 800;
}

body.notifications-page .notifications-list {
    display: grid;
    gap: 10px;
}

body.notifications-page .notification-item {
    display: grid;
    grid-template-columns: 38px 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 15px 16px;
    border: 1px solid #e4e5eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(37, 28, 60, .05);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease;
}

body.notifications-page .notification-item.is-unread {
    border-color: #dca8df;
    box-shadow: 0 5px 18px rgba(155, 29, 177, .10);
}

body.notifications-page .notification-item__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 13px;
    background: #f8eafb;
    color: #a21caf;
    font-size: 1.05rem;
    font-weight: 900;
}

body.notifications-page .notification-item__avatar {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #9b35df, #ed2991);
    color: #fff;
    font-weight: 900;
}

body.notifications-page .notification-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.notifications-page .notification-item__content {
    min-width: 0;
}

body.notifications-page .notification-item__heading {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.notifications-page .notification-item__heading strong {
    color: #202126;
    font-size: .95rem;
}

body.notifications-page .notification-item__unread {
    padding: 3px 7px;
    border-radius: 999px;
    background: #f7dff6;
    color: #9620aa;
    font-size: .66rem;
    font-weight: 900;
    text-transform: uppercase;
}

body.notifications-page .notification-item__content p {
    margin: 5px 0 4px;
    color: #555d6b;
    font-size: .88rem;
    line-height: 1.45;
}

body.notifications-page .notification-item__content small {
    color: #8a909b;
    font-size: .75rem;
}

body.notifications-page .notification-item__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}

body.notifications-page .notification-item__result {
    display: inline-block;
    margin-top: 10px;
    color: #188044;
    font-size: .8rem;
    font-weight: 800;
}

body.notifications-page .notifications-empty {
    padding: 58px 22px;
    border: 1px dashed #dcbbe2;
    border-radius: 18px;
    background: #fffaff;
    text-align: center;
}

body.notifications-page .notifications-empty__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    place-items: center;
    border-radius: 50%;
    background: #f4e5fa;
    color: #a21caf;
    font-size: 1.25rem;
    font-weight: 900;
}

body.notifications-page .notifications-empty strong {
    color: #28202c;
}

body.notifications-page .notifications-empty p {
    margin: 7px 0 0;
    color: #737987;
    font-size: .9rem;
}

body.notifications-page .notifications-more {
    display: block;
    min-width: 130px;
    margin: 16px auto 0;
}

@media (max-width: 620px) {
    body.notifications-page .notifications-shell {
        width: calc(100% - 20px);
        margin-top: 18px;
    }

    body.notifications-page .notifications-shell__head {
        gap: 10px;
    }

    body.notifications-page .notifications-shell__head p {
        font-size: .84rem;
    }

    body.notifications-page .notification-item {
        grid-template-columns: 34px 40px minmax(0, 1fr);
        gap: 9px;
        padding: 13px 11px;
    }

    body.notifications-page .notification-item__icon {
        width: 34px;
        height: 34px;
    }

    body.notifications-page .notification-item__avatar {
        width: 40px;
        height: 40px;
    }
}

body.messages-page.messages-page.messages-page .messages-main {
    width: min(1120px, calc(100% - 32px));
    padding-top: 18px !important;
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 0;
}

body.messages-page.messages-page.messages-page .messages-toolbar,
body.messages-page.messages-page.messages-page .messages-sidebar,
body.messages-page.messages-page.messages-page .messages-thread-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.messages-page.messages-page.messages-page .messages-toolbar {
    display: grid;
    gap: 14px;
    padding: 0 0 12px !important;
    border-bottom: 1px solid #e3e4e8 !important;
}

body.messages-page.messages-page.messages-page .messages-toolbar__title h1 {
    color: #17181b !important;
    font-size: 1.28rem;
}

body.messages-page.messages-page.messages-page .messages-toolbar__icon {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e1e5;
    border-radius: 8px;
    background: #fff;
    color: #4b4e55;
}

body.messages-page.messages-page.messages-page .messages-toolbar__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.messages-page.messages-page.messages-page .messages-toolbar__icon--search svg {
    width: 18px;
    height: 18px;
    fill: none !important;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.messages-page.messages-page.messages-page .messages-search {
    display: none !important;
    visibility: hidden;
    height: 0;
    overflow: hidden;
}
body.messages-page.messages-page.messages-page .messages-search.is-open {
    display: block !important;
    visibility: visible;
    height: auto;
    overflow: visible;
}
body.messages-page.messages-page.messages-page .messages-search[hidden] { display: none !important; }
body.messages-page.messages-page.messages-page .messages-search__field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 8px 0 11px;
    border: 1px solid #dedfe4;
    border-radius: 10px;
    background: #fff;
}
body.messages-page.messages-page.messages-page .messages-search__icon {
    width: 17px;
    height: 17px;
    flex: none;
    fill: none;
    stroke: #6b6e76;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
body.messages-page.messages-page.messages-page .messages-search__field input {
    min-width: 0;
    flex: 1;
    height: 34px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #292b31;
    font: inherit;
}
body.messages-page.messages-page.messages-page .messages-search__field input::placeholder { color: #92959c; }
body.messages-page.messages-page.messages-page .messages-search__clear {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #73767e;
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
}
body.messages-page.messages-page.messages-page .messages-search__clear:hover,
body.messages-page.messages-page.messages-page .messages-search__clear:focus-visible { background: #f3edf5; color: #a21caf; }
body.messages-page.messages-page.messages-page .messages-conversation[hidden],
body.messages-page.messages-page.messages-page .messages-sidebar__empty[hidden] { display: none; }

body.messages-page.messages-page.messages-page .messages-tabs,
body.messages-page.messages-page.messages-page .messages-filters {
    gap: 20px;
    padding: 0;
    scrollbar-width: none;
}

body.messages-page.messages-page.messages-page .messages-tabs {
    overflow: visible;
    border-bottom: 1px solid #e3e4e8;
}

body.messages-page.messages-page.messages-page .messages-tab {
    position: relative;
    min-height: 38px;
    padding: 0 2px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #777a81;
    font-size: .88rem;
}

body.messages-page.messages-page.messages-page .messages-tab.is-active {
    color: #7d197f;
    background: transparent;
}

body.messages-page.messages-page.messages-page .messages-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #a21caf;
}

body.messages-page.messages-page.messages-page .messages-filters {
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0;
}

body.messages-page.messages-page.messages-page .messages-chip {
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid #dedfe4;
    border-radius: 7px;
    background: #fff;
    color: #555860;
    font-size: .78rem;
    font-weight: 600;
}

body.messages-page.messages-page.messages-page .messages-chip.is-active {
    border-color: #e6cce2;
    background: #fff6fc;
    color: #a21caf;
}

body.messages-page.messages-page.messages-page .messages-sidebar__list.is-loading { opacity: .55; pointer-events: none; transition: opacity .15s ease; }

body.messages-page.messages-page.messages-page .messages-thread-panel { min-width: 0; min-height: 0; padding: 0 !important; overflow: hidden; background: #fff !important; }
body.messages-page.messages-page.messages-page .messages-thread { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: min(720px, calc(100dvh - 150px)); height: 100%; background: #fff; }
body.messages-page.messages-page.messages-page .messages-thread__mobilebar { display: none !important; }
body.messages-page.messages-page.messages-page .messages-thread__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 64px; padding: 9px 14px; border-bottom: 1px solid #ececf0; background: #fff; }
body.messages-page.messages-page.messages-page .messages-thread__back { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: #303238; font-size: 1.3rem; text-decoration: none; }
body.messages-page.messages-page.messages-page .messages-thread__profile { min-width: 0; }
body.messages-page.messages-page.messages-page .messages-thread__avatar { width: 40px; height: 40px; border-radius: 50%; }
body.messages-page.messages-page.messages-page .messages-thread__copy { min-width: 0; }
body.messages-page.messages-page.messages-page .messages-thread__title-line h2 { overflow: hidden; margin: 0; color: #17181b !important; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
body.messages-page.messages-page.messages-page .messages-thread__status { display: block; color: #7a7d84; font-size: .72rem; }
body.messages-page.messages-page.messages-page .messages-thread__location { display: none; }
body.messages-page.messages-page.messages-page .messages-thread__actions .btn { display: none; }
body.messages-page.messages-page.messages-page .messages-thread__profile-link { color: #303238; font-size: 1.5rem; text-decoration: none; }
body.messages-page.messages-page.messages-page .messages-thread__messages { min-height: 0; padding: 18px 16px 22px; overflow-y: auto; background: #fcfcfd; }
body.messages-page.messages-page.messages-page .message-row { max-width: 78%; margin: 0 0 10px; }
body.messages-page.messages-page.messages-page .message-row.is-self { margin-left: auto; }
body.messages-page.messages-page.messages-page .message-bubble { max-width: 100%; padding: 9px 11px 7px; border: 1px solid #e5e5e9; border-radius: 15px 15px 15px 4px; background: #f0f1f3; color: #27292e; }
body.messages-page.messages-page.messages-page .message-bubble.is-self { border-color: #efd7e8; border-radius: 15px 15px 4px 15px; background: #fbeaf5; color: #4f214e; }
body.messages-page.messages-page.messages-page .message-bubble__body { white-space: pre-wrap; overflow-wrap: anywhere; }
body.messages-page.messages-page.messages-page .message-bubble__time { display: block; margin-top: 4px; color: #85878e; font-size: .65rem; text-align: right; }
body.messages-page.messages-page.messages-page .message-media { display: block; max-width: 100%; }
body.messages-page.messages-page.messages-page .message-media--image img { display: block; width: min(260px, 100%); max-height: 320px; border-radius: 10px; object-fit: cover; }
body.messages-page.messages-page.messages-page .messages-compose { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: end; gap: 7px; padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid #e5e5e9; background: #fff; }
body.messages-page.messages-page.messages-page .messages-compose textarea { min-height: 38px; max-height: 104px; margin: 0; padding: 9px 11px; border: 1px solid #dedfe4; border-radius: 18px; resize: none; }
body.messages-page.messages-page.messages-page .messages-compose__tool, body.messages-page.messages-page.messages-page .messages-compose__send { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #7d197f; font-size: 1.2rem; cursor: pointer; }
body.messages-page.messages-page.messages-page .messages-compose__tool:hover,
body.messages-page.messages-page.messages-page .messages-compose__tool:focus-visible { color: #a21caf; }
body.messages-page.messages-page.messages-page .messages-compose__tool { color: #34363c; font-size: 0; }
body.messages-page.messages-page.messages-page .messages-compose__tool:hover,
body.messages-page.messages-page.messages-page .messages-compose__tool:focus-visible { color: #a21caf; }
body.messages-page.messages-page.messages-page .messages-compose__tool svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.messages-page.messages-page.messages-page .messages-compose__send { background: #a21caf; color: #fff; font-size: 1rem; }
body.messages-page.messages-page.messages-page .messages-compose__preview { grid-column: 1 / -1; }
body.messages-page.messages-page.messages-page .messages-compose__preview { position: relative; display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; }
body.messages-page.messages-page.messages-page .messages-compose__preview img { display: block; width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
body.messages-page.messages-page.messages-page .messages-compose__preview-fallback { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid #e5d7e9; border-radius: 8px; background: #faf7fb; color: #7d197f; font-size: .58rem; text-align: center; }
body.messages-page.messages-page.messages-page .messages-compose__preview [data-message-image-remove] { position: absolute; top: -5px; right: -5px; z-index: 1; display: grid; width: 18px; height: 18px; place-items: center; padding: 0; border: 1px solid #fff; border-radius: 50%; background: #34363c; color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }
body.messages-page.messages-page.messages-page .messages-compose__error { grid-column: 1 / -1; margin: 0; }
@media (max-width: 720px) {
 body.messages-page.messages-page.messages-page .messages-main { width: 100%; padding: 0 0 calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
 body.messages-page.messages-page.messages-page .messages-toolbar { padding: 10px 12px !important; }
 body.messages-page.messages-page.messages-page .messages-layout { display: block; margin-top: 0; }
 body.messages-page.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar { display: none; }
 body.messages-page.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-thread-panel { display: block; position: fixed; inset: 0 0 calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 40; min-height: 0; }
 body.messages-page.messages-page.messages-page .messages-thread { min-height: 100%; }
 body.messages-page.messages-page.messages-page .messages-thread__messages { padding: 14px 12px; }
 body.messages-page.messages-page.messages-page .message-row { max-width: 86%; }
}

body.messages-page.messages-page.messages-page .messages-thread-panel {
    min-width: 0;
    min-height: 0;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
}
body.messages-page.messages-page.messages-page .messages-thread {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: min(720px, calc(100dvh - 150px));
    height: 100%;
    background: #fff;
}
body.messages-page.messages-page.messages-page .messages-thread__mobilebar { display: none !important; }
body.messages-page.messages-page.messages-page .messages-thread__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 9px 14px;
    border-bottom: 1px solid #ececf0;
    background: #fff;
}
body.messages-page.messages-page.messages-page .messages-thread__back {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #303238;
    font-size: 1.3rem;
    text-decoration: none;
}
body.messages-page.messages-page.messages-page .messages-thread__profile { min-width: 0; }
body.messages-page.messages-page.messages-page .messages-thread__avatar { width: 40px; height: 40px; border-radius: 50%; }
body.messages-page.messages-page.messages-page .messages-thread__copy { min-width: 0; }
body.messages-page.messages-page.messages-page .messages-thread__title-line h2 { overflow: hidden; margin: 0; color: #17181b !important; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
body.messages-page.messages-page.messages-page .messages-thread__status,
body.messages-page.messages-page.messages-page .messages-thread__location { display: block; color: #7a7d84; font-size: .72rem; }
body.messages-page.messages-page.messages-page .messages-thread__location { display: none; }
body.messages-page.messages-page.messages-page .messages-thread__actions { display: flex; align-items: center; }
body.messages-page.messages-page.messages-page .messages-thread__actions .btn { display: none; }
body.messages-page.messages-page.messages-page .messages-thread__profile-link { color: #303238; font-size: 1.5rem; text-decoration: none; }
body.messages-page.messages-page.messages-page .messages-thread__messages {
    min-height: 0;
    padding: 18px 16px 22px;
    overflow-y: auto;
    background: #fcfcfd;
}
body.messages-page.messages-page.messages-page .message-row { max-width: 78%; margin: 0 0 10px; }
body.messages-page.messages-page.messages-page .message-row.is-self { margin-left: auto; }
body.messages-page.messages-page.messages-page .message-bubble { max-width: 100%; padding: 9px 11px 7px; border: 1px solid #e5e5e9; border-radius: 15px 15px 15px 4px; background: #f0f1f3; color: #27292e; }
body.messages-page.messages-page.messages-page .message-bubble.is-self { border-color: #efd7e8; border-radius: 15px 15px 4px 15px; background: #fbeaf5; color: #4f214e; }
body.messages-page.messages-page.messages-page .message-bubble__body { white-space: pre-wrap; overflow-wrap: anywhere; }
body.messages-page.messages-page.messages-page .message-bubble__time { display: block; margin-top: 4px; color: #85878e; font-size: .65rem; text-align: right; }
body.messages-page.messages-page.messages-page .message-media { display: block; max-width: 100%; }
body.messages-page.messages-page.messages-page .message-media--image img { display: block; width: min(260px, 100%); max-height: 320px; border-radius: 10px; object-fit: cover; }
body.messages-page.messages-page.messages-page .messages-compose {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: end;
    gap: 7px;
    padding: 9px 12px calc(9px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e5e5e9;
    background: #fff;
}
body.messages-page.messages-page.messages-page .messages-compose textarea { min-height: 38px; max-height: 104px; margin: 0; padding: 9px 11px; border: 1px solid #dedfe4; border-radius: 18px; resize: none; }
body.messages-page.messages-page.messages-page .messages-compose__tool,
body.messages-page.messages-page.messages-page .messages-compose__send { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #7d197f; font-size: 1.2rem; cursor: pointer; }
body.messages-page.messages-page.messages-page .messages-compose__send { background: #a21caf; color: #fff; font-size: 1rem; }
body.messages-page.messages-page.messages-page .messages-compose__preview { grid-column: 1 / -1; }
body.messages-page.messages-page.messages-page .messages-compose__preview img { width: 58px; height: 58px; border-radius: 8px; object-fit: cover; }
body.messages-page.messages-page.messages-page .messages-compose__error { grid-column: 1 / -1; margin: 0; }

@media (max-width: 720px) {
    body.messages-page.messages-page.messages-page .messages-main { width: 100%; padding: 0 0 calc(70px + env(safe-area-inset-bottom, 0px)) !important; }
    body.messages-page.messages-page.messages-page .messages-toolbar { padding: 10px 12px !important; }
    body.messages-page.messages-page.messages-page .messages-layout { display: block; margin-top: 0; }
    body.messages-page.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar { display: none; }
    body.messages-page.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-thread-panel { display: block; position: fixed; inset: 0 0 calc(58px + env(safe-area-inset-bottom, 0px)); z-index: 40; min-height: 0; }
    body.messages-page.messages-page.messages-page .messages-thread { min-height: 100%; }
    body.messages-page.messages-page.messages-page .messages-thread__messages { padding: 14px 12px; }
    body.messages-page.messages-page.messages-page .message-row { max-width: 86%; }
}

body.messages-page.messages-page.messages-page .messages-sidebar__list.is-loading {
    opacity: .55;
    pointer-events: none;
    transition: opacity .15s ease;
}

body.messages-page.messages-page.messages-page .messages-layout {
    grid-template-columns: minmax(320px, 1fr) minmax(0, 1.35fr);
    gap: 20px;
    margin-top: 14px;
}

body.messages-page.messages-page.messages-page .messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: visible;
}

body.messages-page.messages-page.messages-page .messages-sidebar__head {
    padding: 0 0 9px;
    border-bottom: 1px solid #e3e4e8;
}

body.messages-page.messages-page.messages-page .messages-sidebar__eyebrow {
    color: #a21caf;
    font-size: .72rem;
}

body.messages-page.messages-page.messages-page .messages-sidebar__head h2 {
    margin: 2px 0 0;
    color: #17181b;
    font-size: .98rem;
}

body.messages-page.messages-page.messages-page .messages-sidebar__count {
    min-width: 25px;
    height: 25px;
    padding: 0 7px;
    border: 0;
    background: #fbe1ef;
    color: #b21c70;
    font-size: .72rem;
}

body.messages-page.messages-page.messages-page .messages-sidebar__list {
    display: grid;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 0;
}

body.messages-page.messages-page.messages-page .messages-conversation {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 11px;
    min-width: 0;
    padding: 13px 2px;
    border: 0;
    border-bottom: 1px solid #e7e8ec;
    border-radius: 0;
    background: transparent;
    transition: background .16s ease;
}

body.messages-page.messages-page.messages-page .messages-conversation:hover,
body.messages-page.messages-page.messages-page .messages-conversation.is-active {
    transform: none;
    border-color: #e7e8ec;
    background: #fff;
}

body.messages-page.messages-page.messages-page .messages-conversation__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg,#c026d3,#ec4899);
}

body.messages-page.messages-page.messages-page .messages-conversation__avatar__image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

body.messages-page.messages-page.messages-page .messages-conversation__avatar__dot {
    width: 10px;
    height: 10px;
    border: 2px solid #f7f7f9;
}

body.messages-page.messages-page.messages-page .messages-conversation__avatar__official {
    width: 15px;
    height: 15px;
    border: 2px solid #f7f7f9;
    background: #8d2bb7;
}

body.messages-page.messages-page.messages-page .messages-conversation__body { gap: 3px; }
body.messages-page.messages-page.messages-page .messages-conversation__title-line { gap: 6px; }
body.messages-page.messages-page.messages-page .messages-conversation__title-line strong { color: #17181b; font-size: .94rem; }
body.messages-page.messages-page.messages-page .messages-conversation__snippet { color: #73767e; font-size: .82rem; }
body.messages-page.messages-page.messages-page .messages-conversation__location { color: #92959c; font-size: .75rem; }
body.messages-page.messages-page.messages-page .messages-conversation__meta { gap: 6px; color: #8b8e95; font-size: .7rem; }
body.messages-page.messages-page.messages-page .messages-conversation__time { color: #858890; font-size: .7rem; white-space: nowrap; }
body.messages-page.messages-page.messages-page .messages-conversation__unread { min-width: 17px; height: 17px; padding: 0 4px; border-radius: 50%; background: #df1f76; font-size: .62rem; }
body.messages-page.messages-page.messages-page .messages-sidebar__empty { min-height: 180px; padding: 38px 12px; color: #555860; text-align: center; }
body.messages-page.messages-page.messages-page .messages-sidebar__empty strong { color: #303238; }
body.messages-page.messages-page.messages-page .messages-sidebar__empty p { color: #858890; }

body.messages-page.messages-page.messages-page .messages-thread-panel {
    min-height: 520px;
    background: #fff !important;
    border-left: 1px solid #e3e4e8 !important;
}
body.messages-page.messages-page.messages-page .messages-thread__head,
body.messages-page.messages-page.messages-page .messages-compose { border-color: #e3e4e8; }
body.messages-page.messages-page.messages-page .messages-thread__title-line h2 { color: #17181b; }
body.messages-page.messages-page.messages-page .messages-thread__status,
body.messages-page.messages-page.messages-page .messages-thread__location,
body.messages-page.messages-page.messages-page .message-bubble__time { color: #73767e; }
body.messages-page.messages-page.messages-page .messages-thread__back { background: #fff; border-color: #e0e1e5; color: #4b4e55; }
body.messages-page.messages-page.messages-page .message-bubble { border: 1px solid #e4e5e9; border-radius: 12px; background: #f1f2f4; color: #303238; }
body.messages-page.messages-page.messages-page .message-bubble.is-self { border-color: #ead6e9; background: #fbeaf5; color: #4d2450; }
body.messages-page.messages-page.messages-page .messages-compose textarea { border: 1px solid #dfe1e6; border-radius: 10px; background: #fff; color: #303238; }
body.messages-page.messages-page.messages-page .messages-empty__icon { width: 48px; height: 48px; border-radius: 50%; background: #fbe6f1; color: #a21caf; }

@media (max-width: 980px) {
    body.messages-page.messages-page.messages-page .messages-layout { grid-template-columns: 1fr; }
    body.messages-page.messages-page.messages-page .messages-thread-panel { border-left: 0 !important; }
}
@media (max-width: 720px) {
    body.messages-page.messages-page.messages-page .messages-main { width: calc(100% - 24px); padding-top: 12px !important; padding-bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important; }
    body.messages-page.messages-page.messages-page .messages-toolbar { gap: 11px; padding-bottom: 10px !important; }
    body.messages-page.messages-page.messages-page .messages-tabs { gap: 18px; overflow-x: auto; }
    body.messages-page.messages-page.messages-page .messages-layout { margin-top: 10px; }
    body.messages-page.messages-page.messages-page .messages-conversation { padding: 12px 0; }
    body.messages-page.messages-page.messages-page .messages-conversation__avatar { width: 46px; height: 46px; }
    body.messages-page.messages-page.messages-page .messages-thread-panel { min-height: calc(100vh - 170px); }
}

/* Compact light bottom navigation */
body.home-page.home-page.home-page .home-main {
    padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important;
}

.home-bottom-nav.home-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 0;
    pointer-events: none;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__shell {
    width: 100%;
    min-height: 66px;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    padding: 4px 8px calc(4px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid #e1e2e6;
    border-radius: 0;
    background: rgba(255,255,255,.98) !important;
    box-shadow: 0 -3px 12px rgba(31,41,55,.08) !important;
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__item {
    min-width: 0;
    min-height: 57px;
    padding: 4px 3px 3px;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #555860 !important;
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__item:hover {
    color: #33363c !important;
    background: transparent !important;
    transform: none;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__item.is-active {
    color: #a21caf !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__icon {
    width: 26px;
    height: 26px;
    color: currentColor;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__icon svg {
    width: 23px;
    height: 23px;
    fill: none !important;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__label {
    line-height: 1;
    white-space: nowrap;
}

.home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__badge {
    top: -3px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border: 1px solid #fff;
    border-radius: 999px;
    background: #e11d72;
    color: #fff;
    font-size: .6rem;
    line-height: 14px;
    box-shadow: none;
}

@media (max-width: 760px) {
    .home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__shell {
        min-height: 64px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__item {
        min-height: 55px;
        font-size: .6rem;
    }
}
.login-page{background:#100b1d!important;color:#f8f7fb}.login-page .topbar-guest{background:#100b1d;border-bottom:1px solid rgba(255,255,255,.1)}.login-page .topbar-guest .topbar-inner{min-height:72px}.login-page .topbar-guest-actions{gap:8px}.login-modal-backdrop{min-height:calc(100vh - 72px);display:grid;place-items:center;padding:36px 16px 54px;background:radial-gradient(circle at 50% 0,rgba(153,38,190,.18),transparent 42%)}.login-modal{position:relative;width:min(440px,100%);padding:30px;border:1px solid rgba(188,93,218,.38);border-radius:18px;background:#171324;box-shadow:0 18px 50px rgba(0,0,0,.28)}.login-modal__close{position:absolute;top:14px;right:18px;color:#aaa1b4;text-decoration:none;font-size:1.6rem;line-height:1}.login-modal__head h1{margin:16px 0 7px;font-size:1.75rem;line-height:1.1}.login-modal__head p{margin:0;color:#bdb5c8}.login-modal__form{display:grid;gap:15px;margin-top:24px}.login-modal__form label{display:grid;gap:7px;color:#eeeaf2;font-size:.84rem;font-weight:700}.login-modal__form input[type=text],.login-modal__form input[type=password]{width:100%;box-sizing:border-box;padding:12px 13px;border:1px solid #4e405d;border-radius:9px;background:#fff;color:#26212d;font:inherit;font-weight:400}.login-modal__form input:focus{outline:2px solid rgba(204,43,219,.35);border-color:#c12bd2}.login-modal__options{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:.8rem}.login-modal__options a,.login-modal__signup a{color:#e4a7ef}.login-modal__options .checkbox-line{display:flex;align-items:center;gap:7px;color:#c9c0d0;font-weight:500}.login-modal__options .checkbox-line input{width:auto}.login-modal__form .btn{min-height:46px}.login-modal__signup{margin:2px 0 0;text-align:center;color:#aaa1b4;font-size:.84rem}.login-page .footer{border-color:rgba(255,255,255,.1);color:#aaa1b4}.login-page .footer a{color:#d7a0e2}@media(max-width:600px){.login-modal-backdrop{min-height:calc(100vh - 64px);padding:22px 12px 36px}.login-modal{padding:24px 18px;border-radius:14px}.login-modal__head h1{font-size:1.55rem}.login-page .topbar-guest .topbar-inner{padding-inline:14px}.login-page .topbar-guest-actions .btn:first-child{display:none}}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.22), transparent 28%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.18), transparent 24%),
        radial-gradient(circle at bottom, rgba(34, 211, 238, 0.12), transparent 26%),
        var(--bg);
    color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 10, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-guest .topbar-inner {
    min-height: 82px;
}

.topbar-guest-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-guest-actions .btn {
    white-space: nowrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: white;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
}

.brand strong, .brand small {
    display: block;
}

.brand small {
    color: var(--muted);
    font-size: 0.82rem;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.topnav a {
    color: #e4e4e7;
    font-weight: 600;
}

.app-main {
    padding: 28px 0 38px;
}

.glass {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
    backdrop-filter: blur(18px);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 14px 22px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn:hover { transform: translateY(-2px); }
.btn-primary {
    background: linear-gradient(135deg, var(--accent), #ff7a59);
    color: white;
    box-shadow: 0 18px 45px rgba(255, 77, 141, 0.25);
}
.btn-secondary {
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}
.btn-small { padding: 10px 16px; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 999px;
    color: #e4e4e7;
    font-size: 0.82rem;
    background: rgba(255,255,255,0.03);
}

.hero-card {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
    border-radius: 30px;
    padding: 28px;
    margin-top: 16px;
}

.hero-copy h1,
.form-copy h1,
.page-head h1 {
    font-size: clamp(2.8rem, 8vw, 5.8rem);
    line-height: 0.92;
    margin: 10px 0 12px;
    letter-spacing: -0.05em;
}

.hero-copy .lead,
.form-copy p,
.page-head p,
.info-card p,
.soft-card p,
.preview-card p {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fca5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-actions, .row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.hero-panel {
    padding: 20px;
}

.panel-top,
.footer-links,
.topnav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.preview-stack {
    display: grid;
    gap: 14px;
}

.preview-card {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-card strong {
    display: block;
    margin-bottom: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    display: inline-block;
    margin-bottom: 12px;
}

.dot-pink { background: #ff4d8d; }
.dot-red { background: #fb7185; }
.dot-blue { background: #38bdf8; }

.stats-grid, .section-grid, .faq-grid, .metric-grid {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.stats-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.section-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.faq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.stat-box, .info-card, .soft-card, .metric, .content-card {
    padding: 22px;
}

.stat-box strong, .metric strong {
    display: block;
    font-size: 2rem;
    margin-bottom: 4px;
}

.stat-box span, .metric span { color: var(--muted); }

.section {
    padding: 36px 0;
}

.form-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 20px;
    padding: 24px;
    border-radius: 28px;
    margin-top: 18px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

.form-grid label, .field {
    display: grid;
    gap: 8px;
    color: #e4e4e7;
    font-size: 0.95rem;
    font-weight: 600;
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    outline: none;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: rgba(255, 77, 141, 0.55);
    box-shadow: 0 0 0 4px rgba(255, 77, 141, 0.12);
}

.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e4e4e7;
    font-weight: 500;
}

.helper-line {
    color: var(--muted);
    margin: 0;
}

.helper-line a { color: #fca5a5; }

.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}

.alert-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fecaca;
}

.alert-success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.2);
    color: #bbf7d0;
}

body.email-confirmation-locked {
    overflow: hidden;
}

.email-confirmation-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 20px;
}

.email-confirmation-modal[hidden] {
    display: none !important;
}

.email-confirmation-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 16, 0.76);
    backdrop-filter: blur(10px);
}

.email-confirmation-modal__panel {
    position: relative;
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(18, 12, 45, 0.98), rgba(9, 10, 27, 0.99));
    border: 1px solid rgba(168, 85, 247, 0.34);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62), 0 0 40px rgba(124, 32, 255, 0.18);
    color: var(--sf-white);
}

.email-confirmation-modal__head {
    padding: 28px 28px 12px;
    text-align: center;
}

.email-confirmation-modal__kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(168, 85, 247, 0.42);
    background: rgba(124, 32, 255, 0.14);
    color: #f5f3ff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.email-confirmation-modal__title {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
}

.email-confirmation-modal__body {
    padding: 18px 28px 30px;
    display: grid;
    gap: 16px;
    text-align: center;
}

.email-confirmation-modal__message {
    margin: 0;
    color: rgba(245, 243, 255, 0.88);
    font-size: 1.02rem;
    line-height: 1.65;
}

.email-confirmation-modal__email {
    margin: 0 auto;
    max-width: 100%;
    padding: 16px 22px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    word-break: break-word;
}

.email-confirmation-modal__note {
    margin: 0;
    color: #fca5a5;
    font-weight: 600;
}

.email-confirmation-modal__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.email-confirmation-modal__actions .btn {
    min-height: 50px;
}

.email-confirmation-modal__actions .btn-primary {
    min-width: 230px;
}

.email-confirmation-modal__actions .btn-secondary {
    min-width: 220px;
}

.email-confirmation-modal__status {
    margin: 0;
    color: rgba(245, 243, 255, 0.72);
    font-size: 0.95rem;
}

@media (max-width: 720px) {
    .email-confirmation-modal {
        padding: 14px;
        align-items: end;
    }

    .email-confirmation-modal__panel {
        border-radius: 22px;
    }

    .email-confirmation-modal__head,
    .email-confirmation-modal__body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .email-confirmation-modal__actions .btn-primary,
    .email-confirmation-modal__actions .btn-secondary {
        min-width: 100%;
    }
}

.dashboard-grid {
    display: grid;
    gap: 18px;
    margin-top: 18px;
}

.page-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
}

.list-stack {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.8;
}

.progress-bar {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
    margin-top: 16px;
}

.progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #ff4d8d, #fb7185, #8b5cf6);
}

.discover-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.discover-card {
    padding: 22px;
}

.discover-hero {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.discover-avatar {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255,77,141,0.34), rgba(139,92,246,0.34));
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.discover-hero p {
    margin: 4px 0 0;
    color: var(--muted);
}

.pill-row,
.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.age-gate {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(5, 5, 10, 0.76);
    backdrop-filter: blur(18px);
}

.age-gate[hidden] { display: none; }

.age-card {
    width: min(520px, 100%);
    border-radius: 28px;
    padding: 26px;
    background: linear-gradient(180deg, rgba(26, 26, 33, 0.98), rgba(16, 16, 22, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

#age-gate .pill {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

#age-gate h2 {
    color: #f8fafc;
}

#age-gate p {
    color: #d4d4d8;
}

#age-gate .btn {
    min-height: 44px;
    cursor: pointer;
}

#age-gate .btn-primary {
    box-shadow: 0 18px 45px rgba(255, 77, 141, 0.3);
}

#age-gate #age-reject {
    background: #2a2a31;
    border-color: rgba(255, 255, 255, 0.18);
    color: #f4f4f5;
}

#age-gate #age-reject:hover {
    background: #3a3a42;
    border-color: rgba(255, 255, 255, 0.26);
    color: #ffffff;
}

.footer {
    padding: 26px 0 44px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    margin-top: 32px;
    flex-wrap: wrap;
}

.footer p {
    margin: 6px 0 0;
}

.footer-links {
    justify-content: flex-end;
}

/* Home landing */
.home-page {
    background:
        radial-gradient(circle at 15% 12%, rgba(255, 79, 155, 0.22), transparent 22%),
        radial-gradient(circle at 82% 10%, rgba(121, 40, 202, 0.38), transparent 26%),
        linear-gradient(180deg, #6c117f 0%, #450a63 42%, #09070d 100%);
}

.home-main {
    overflow: hidden;
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: rgba(72, 10, 103, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.home-topbar-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-home .brand-mark-home {
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.95), rgba(255, 159, 67, 0.92));
    color: white;
    display: grid;
    place-items: center;
}

.brand-mark-home svg {
    width: 24px;
    height: 24px;
}

.topnav-home a {
    color: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.12);
}

.home-aurora {
    position: absolute;
    pointer-events: none;
    filter: blur(24px);
    opacity: 0.9;
}

.home-aurora-left {
    width: 36rem;
    height: 36rem;
    left: -7rem;
    top: 8rem;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.34), transparent 65%);
}

.home-aurora-right {
    width: 32rem;
    height: 32rem;
    right: -8rem;
    top: 5rem;
    background: radial-gradient(circle, rgba(173, 61, 255, 0.3), transparent 66%);
}

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 420px);
    align-items: start;
    gap: 32px;
    padding: 24px 0 36px;
    color: #fff;
}

.home-hero-copy {
    position: relative;
    z-index: 1;
    padding: 14px 0;
}

.hero-kicker,
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #ffe4f1;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-hero-copy h1 {
    margin: 18px 0 16px;
    max-width: 12ch;
    font-size: clamp(3.1rem, 6.8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    color: #fff;
}

.hero-text {
    max-width: 62ch;
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
}

.hero-actions {
    margin-top: 28px;
}

.hero-stats {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.hero-stat {
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.hero-stat strong {
    display: block;
    font-size: 1.8rem;
    margin-bottom: 4px;
    color: #fff;
}

.hero-stat span {
    color: rgba(255, 255, 255, 0.8);
}

.signup-card {
    position: relative;
    z-index: 1;
    padding: 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
    color: #fff;
    backdrop-filter: blur(18px);
}

.signup-card-top,
.proof-panel-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill-home {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.signup-card h2 {
    margin: 18px 0 10px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.signup-card p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.signup-form {
    display: grid;
    gap: 14px;
}

.signup-form label {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.94);
    font-weight: 600;
}

.signup-form span {
    font-size: 0.92rem;
}

.signup-form select {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.94);
    color: #4c1d95;
    outline: none;
}

.btn-block {
    width: 100%;
}

.signup-link {
    display: inline-block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.88);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-feature-slab {
    position: relative;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, #f8f4fb 100%);
    padding: 72px 0 66px;
    color: #4c1d95;
}

.home-feature-slab::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -58px;
    height: 120px;
    background: linear-gradient(180deg, transparent 0, rgba(255,255,255,0.94) 65%, rgba(255,255,255,0.96) 100%);
    border-top-left-radius: 100% 90px;
    border-top-right-radius: 100% 90px;
}

.feature-shell {
    position: relative;
    z-index: 1;
}

.feature-intro {
    max-width: 820px;
    margin: 0 auto 30px;
    text-align: center;
}

.feature-intro h2,
.proof-copy h2,
.cta-card h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    margin: 16px 0 14px;
    letter-spacing: -0.04em;
}

.feature-intro p,
.proof-copy p,
.cta-card p {
    color: rgba(76, 29, 149, 0.8);
    line-height: 1.8;
    margin: 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(124, 58, 237, 0.12);
    box-shadow: 0 16px 50px rgba(76, 29, 149, 0.08);
}

.feature-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(255, 77, 141, 0.14));
    color: #6d28d9;
    margin-bottom: 18px;
    font-size: 1.1rem;
}

.feature-card h3 {
    margin: 0 0 10px;
    font-size: 1.25rem;
    color: #4c1d95;
}

.feature-card p {
    margin: 0;
    color: rgba(76, 29, 149, 0.78);
    line-height: 1.7;
}

.home-proof {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
    gap: 34px;
    align-items: center;
    padding: 82px 0 92px;
}

.proof-visual {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(88, 28, 135, 0.96), rgba(45, 12, 61, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 28px 72px rgba(0, 0, 0, 0.32);
}

.proof-blob {
    position: absolute;
    border-radius: 999px;
    filter: blur(12px);
}

.proof-blob-a {
    width: 20rem;
    height: 20rem;
    left: -3rem;
    top: -1rem;
    background: radial-gradient(circle, rgba(255, 77, 141, 0.18), transparent 68%);
}

.proof-blob-b {
    width: 16rem;
    height: 16rem;
    right: -2rem;
    bottom: -2rem;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 68%);
}

.proof-panel {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 14px;
    padding: 26px;
    max-width: 560px;
}

.proof-card {
    padding: 18px 18px 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.proof-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.proof-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.7;
}

.proof-copy {
    color: #fff;
}

.proof-copy p {
    color: rgba(255, 255, 255, 0.84);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.mini-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.9rem;
}

.home-cta {
    padding: 0 0 64px;
}

.cta-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 26px 28px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 244, 251, 0.96));
    box-shadow: 0 18px 60px rgba(76, 29, 149, 0.08);
}

.cta-card p {
    max-width: 60ch;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-footer {
    background: linear-gradient(180deg, #5d117d 0%, #4a0d66 100%);
    color: #fff;
    padding: 34px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.home-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.home-footer p {
    margin: 8px 0 0;
    color: rgba(255, 255, 255, 0.84);
}

.home-footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.home-footer-links a {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 980px) {
    .hero-card, .form-shell, .section-grid, .faq-grid, .metric-grid, .stats-grid, .discover-grid {
        grid-template-columns: 1fr;
    }

    .hero-card {
        padding: 22px;
    }

    .hero-copy h1, .form-copy h1, .page-head h1 {
        max-width: none;
        font-size: clamp(2.6rem, 11vw, 4.2rem);
    }

    .topbar-inner {
        flex-direction: column;
        align-items: start;
        padding: 14px 0;
    }

    .topnav {
        justify-content: start;
    }

    .two-cols {
        grid-template-columns: 1fr;
    }

    .home-topbar-inner,
    .cta-card,
    .home-proof,
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-topbar-inner,
    .home-footer-inner,
    .cta-card {
        align-items: start;
    }

    .home-topbar-inner,
    .cta-card {
        flex-direction: column;
    }

    .desire-card,
    .prep-card {
        width: calc(100% - 16px);
        border-radius: 8px;
    }

    .desire-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 10px 10px 8px;
    }

    .desire-head-copy {
        padding-right: 8px;
    }

    .desire-form {
        padding: 16px 12px 14px;
    }

    .desire-extra {
        padding: 14px 14px 16px 44px;
    }

    .desire-choice {
        padding: 0 14px;
    }

    .desire-item {
        font-size: 1rem;
    }

    .desire-footer {
        flex-direction: column;
        align-items: stretch;
        padding-top: 14px;
    }

    .desire-continue {
        min-width: 100%;
    }

    .username-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .username-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .username-head-copy {
        padding-right: 8px;
    }

    .username-form {
        padding: 18px 14px 16px;
    }

    .username-copy p {
        font-size: 0.98rem;
    }

    .username-field input {
        min-height: 54px;
    }

    .username-suggestion {
        width: 100%;
        justify-content: center;
    }

    .username-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .username-continue {
        min-width: 100%;
    }

    .location-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .location-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .location-head-copy {
        padding-right: 8px;
    }

    .location-form {
        padding: 22px 14px 16px;
    }

    .location-copy p {
        font-size: 0.98rem;
    }

    .location-field input {
        min-height: 54px;
    }

    .location-input-row {
        grid-template-columns: minmax(0, 1fr) 50px;
        gap: 8px;
    }

    .location-current {
        min-height: 54px;
        border-radius: 14px;
    }

    .location-suggestions {
        padding: 8px;
    }

    .location-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .location-continue {
        min-width: 100%;
    }

    .access-card {
        width: calc(100% - 16px);
        border-radius: 18px;
    }

    .access-head {
        grid-template-columns: 28px minmax(0, 1fr);
        padding: 12px 12px 10px;
    }

    .access-head-copy {
        padding-right: 8px;
    }

    .access-form {
        padding: 22px 14px 16px;
    }

    .access-copy p {
        font-size: 0.98rem;
    }

    .access-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .access-summary {
        grid-template-columns: 1fr;
    }

    .access-password-wrap {
        grid-template-columns: minmax(0, 1fr) 52px;
    }

    .access-continue {
        min-width: 100%;
    }

    .home-hero {
        min-height: auto;
        padding-top: 34px;
    }

    .home-hero-copy h1 {
        max-width: none;
    }

    .hero-stats,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .prep-continue {
        min-width: 100%;
    }
}

/* SexFan identity refresh */
:root {
    --sf-bg: #050616;
    --sf-bg-secondary: #090A22;
    --sf-surface: #101126;
    --sf-surface-light: #171832;
    --sf-purple: #7C20FF;
    --sf-purple-light: #A855F7;
    --sf-violet: #5D3BFF;
    --sf-magenta: #E000FF;
    --sf-pink: #FF1493;
    --sf-red: #FF253A;
    --sf-orange: #FF7A00;
    --sf-yellow: #FFB800;
    --sf-white: #F8F7FF;
    --sf-text-secondary: #B8B5CC;
    --sf-border: rgba(155, 92, 255, 0.24);
    --sf-border-strong: rgba(178, 104, 255, 0.48);
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(112, 32, 255, 0.14), transparent 32%),
        radial-gradient(circle at 85% 20%, rgba(224, 0, 255, 0.10), transparent 30%),
        radial-gradient(circle at 70% 90%, rgba(255, 37, 58, 0.07), transparent 28%),
        var(--sf-bg);
    color: var(--sf-white);
}

.wrap {
    color: var(--sf-white);
}

.home-page {
    background: var(--sf-bg);
}

.glass,
.card,
.signup-card,
.proof-visual,
.proof-card,
.feature-card,
.hero-stat,
.cta-card,
.age-card {
    background: rgba(16, 17, 38, 0.94) !important;
    border: 1px solid var(--sf-border) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.45),
        0 0 35px rgba(124, 32, 255, 0.08) !important;
}

.topbar,
.home-topbar {
    background: rgba(5, 6, 22, 0.82) !important;
    border-bottom: 1px solid rgba(155, 92, 255, 0.18);
}

.brand-mark,
.brand-mark-home {
    background: linear-gradient(135deg, var(--sf-purple), var(--sf-magenta), var(--sf-red)) !important;
    color: #fff !important;
    box-shadow: 0 10px 25px rgba(124, 32, 255, 0.28);
}

.brand-wordmark strong {
    display: inline-flex;
    align-items: baseline;
    gap: 1px;
    line-height: 1;
}

.brand-sex {
    color: var(--sf-white);
}

.brand-fan {
    background: linear-gradient(135deg, var(--sf-purple-light), var(--sf-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand small {
    color: var(--sf-text-secondary);
}

.topnav a,
.home-footer-links a,
.signup-link,
.helper-line a,
.hero-text,
.feature-intro p,
.proof-copy p,
.cta-card p,
.home-footer p,
.hero-stat span,
.proof-card p,
.preview-card p,
.muted,
.info-card p,
.soft-card p,
.page-head p,
.form-copy p {
    color: var(--sf-text-secondary) !important;
}

.btn-primary {
    background: linear-gradient(135deg, #7C20FF 0%, #D900FF 55%, #FF253A 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 30px rgba(178, 32, 255, 0.30) !important;
}

.btn-primary:hover {
    filter: brightness(1.06);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary,
.btn-ghost {
    background: #171832 !important;
    color: #fff !important;
    border: 1px solid var(--sf-border-strong) !important;
}

.btn-secondary:hover,
.btn-ghost:hover {
    background: #202144 !important;
}

.btn,
.btn:hover {
    cursor: pointer;
}

.pill,
.pill-home,
.hero-kicker,
.section-tag,
.mini-pill {
    background: rgba(124, 32, 255, 0.12) !important;
    border: 1px solid rgba(155, 92, 255, 0.32) !important;
    color: var(--sf-white) !important;
}

.hero-page,
.home-hero-copy h1,
.form-copy h1,
.page-head h1,
.feature-intro h2,
.proof-copy h2,
.cta-card h2,
.signup-card h2,
.hero-hero,
.hero-text,
.signup-card p,
.signup-card span,
.hero-stat strong,
.feature-card h3,
.proof-card strong {
    color: var(--sf-white) !important;
}

.home-hero {
    color: var(--sf-white);
}

.home-aurora-left {
    background: radial-gradient(circle, rgba(124, 32, 255, 0.22), transparent 65%) !important;
}

.home-aurora-right {
    background: radial-gradient(circle, rgba(224, 0, 255, 0.18), transparent 66%) !important;
}

.home-feature-slab {
    background:
        radial-gradient(circle at 20% 0%, rgba(93, 59, 255, 0.08), transparent 24%),
        linear-gradient(180deg, var(--sf-bg-secondary) 0%, var(--sf-bg) 100%) !important;
    color: var(--sf-white) !important;
}

.home-feature-slab::before {
    background: linear-gradient(180deg, transparent 0, rgba(9, 10, 34, 0.92) 65%, rgba(9, 10, 34, 0.98) 100%) !important;
}

.feature-intro h2,
.proof-copy h2,
.cta-card h2 {
    color: var(--sf-white) !important;
}

.feature-card {
    background: rgba(23, 24, 50, 0.94) !important;
}

.feature-card p {
    color: var(--sf-text-secondary) !important;
}

.feature-icon {
    color: #fff !important;
    background: linear-gradient(135deg, rgba(124, 32, 255, 0.24), rgba(224, 0, 255, 0.20)) !important;
}

.home-proof {
    color: var(--sf-white);
}

.proof-visual {
    background:
        radial-gradient(circle at 20% 20%, rgba(124, 32, 255, 0.18), transparent 35%),
        linear-gradient(135deg, rgba(16, 17, 38, 0.96), rgba(9, 10, 34, 0.98)) !important;
}

.proof-blob-a {
    background: radial-gradient(circle, rgba(224, 0, 255, 0.16), transparent 68%) !important;
}

.proof-blob-b {
    background: radial-gradient(circle, rgba(255, 37, 58, 0.10), transparent 68%) !important;
}

.proof-card,
.signup-card,
.cta-card {
    color: var(--sf-white) !important;
}

.proof-card p,
.signup-card p,
.cta-card p {
    color: var(--sf-text-secondary) !important;
}

.tag-cloud .mini-pill,
.signup-card .pill,
.hero-kicker,
.section-tag {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}

.home-cta {
    background: transparent;
}

.cta-card {
    background: rgba(16, 17, 38, 0.96) !important;
}

.home-footer {
    background: linear-gradient(180deg, #090A22 0%, #050616 100%) !important;
}

.home-footer-links a:hover,
.topnav a:hover,
.signup-link:hover,
.helper-line a:hover {
    color: var(--sf-magenta) !important;
}

.consent-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.consent-card {
    width: min(720px, 100%);
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(112, 32, 255, 0.92), rgba(70, 18, 110, 0.96));
    border: 1px solid rgba(168, 85, 247, 0.34);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 40px rgba(124, 32, 255, 0.14);
}

.consent-icon {
    display: grid;
    place-items: center;
    font-size: 3rem;
    padding-top: 34px;
}

.consent-card h1 {
    margin: 18px 0 8px;
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--sf-white);
}

.consent-lead {
    margin: 0 auto;
    padding: 0 28px 22px;
    max-width: 44ch;
    text-align: center;
    color: rgba(248, 247, 255, 0.94);
    font-size: 1.15rem;
    line-height: 1.6;
}

.consent-form {
    background: rgba(5, 6, 22, 0.96);
    padding: 34px 42px 42px;
    display: grid;
    gap: 18px;
}

.consent-check {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    color: var(--sf-white);
    font-weight: 600;
    line-height: 1.5;
}

.consent-check input {
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: var(--sf-purple-light);
}

.consent-continue {
    margin-top: 10px;
    min-height: 56px;
    font-size: 1rem;
}

.consent-continue:disabled {
    opacity: 0.55;
    filter: grayscale(0.12);
    cursor: not-allowed;
}

.prep-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.prep-card {
    width: min(760px, 100%);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d8e4;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.prep-head {
    text-align: center;
    padding: 18px 20px 12px;
    border-bottom: 1px solid #e5e5ef;
}

.prep-kicker {
    display: inline-block;
    color: #a0a0af;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.prep-head h1 {
    margin: 4px 0 0;
    color: #5f2e93;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
}

.prep-form {
    display: grid;
    gap: 22px;
    padding: 22px 22px 18px;
    background: #ffffff;
}

.prep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.prep-tile {
    position: relative;
    min-height: 124px;
    border-radius: 6px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.26), rgba(78, 18, 112, 0.58)),
        linear-gradient(135deg, rgba(159, 78, 255, 0.92), rgba(226, 0, 255, 0.54));
    border: 1px solid rgba(125, 42, 180, 0.22);
    box-shadow: inset 0 -24px 40px rgba(42, 6, 58, 0.28);
    cursor: pointer;
}

.prep-tile:nth-child(2n) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(78, 18, 112, 0.52)),
        linear-gradient(135deg, rgba(143, 68, 255, 0.9), rgba(255, 20, 147, 0.48));
}

.prep-tile:nth-child(3n) {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(64, 16, 92, 0.58)),
        linear-gradient(135deg, rgba(124, 32, 255, 0.9), rgba(255, 122, 0, 0.38));
}

.prep-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(8, 5, 16, 0.42) 100%);
}

.prep-check {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 24px;
    height: 24px;
    accent-color: #7c20ff;
    z-index: 1;
}

.prep-tile-label {
    position: absolute;
    left: 38px;
    bottom: 11px;
    z-index: 1;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.prep-tile:has(.prep-check:checked) {
    outline: 3px solid rgba(124, 32, 255, 0.75);
    transform: translateY(-1px);
}

.prep-optin {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #4b2d7d;
    font-weight: 700;
    line-height: 1.5;
}

.prep-optin input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: #7c20ff;
}

.prep-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 22px 20px;
    border-top: 1px solid #e5e5ef;
    background: #ffffff;
}

.prep-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prep-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d0d0dc;
    border-radius: 999px;
}

.prep-dots .dot.active {
    background: #d61a84;
}

.prep-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.prep-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.prep-toast {
    width: min(760px, calc(100% - 32px));
    margin: 16px auto 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 37, 58, 0.14);
    border: 1px solid rgba(255, 37, 58, 0.24);
    color: #ffd6db;
}

.desire-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.desire-card {
    width: min(760px, 100%);
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #d8d8e4;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.28);
}

.desire-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 12px 16px 10px;
    border-bottom: 1px solid #e5e5ef;
}

.desire-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: #6a5e75;
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.desire-head-copy {
    text-align: center;
    padding-right: 28px;
}

.desire-head h1 {
    margin: 4px 0 0;
    color: #5f2e93;
    font-size: clamp(1.5rem, 3vw, 2rem);
    line-height: 1.1;
}

.desire-form {
    display: grid;
    gap: 18px;
    padding: 18px 22px 18px;
    background: #ffffff;
}

.desire-list {
    display: grid;
    gap: 8px;
    padding: 8px 6px 2px;
}

.desire-block {
    display: grid;
    gap: 12px;
}

.desire-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: #4b2d7d;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
}

.desire-check {
    width: 24px;
    height: 24px;
    margin: 0;
    accent-color: #7c20ff;
    flex: 0 0 auto;
}

.desire-item span {
    display: inline-block;
    position: relative;
    top: 1px;
}

.desire-extra {
    margin: -2px 0 2px;
    padding: 16px 18px 18px 52px;
    background: #f8f8fb;
    border-top: 1px solid #e7e7f0;
    border-bottom: 1px solid #e7e7f0;
}

.desire-extra p {
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 1rem;
    line-height: 1.45;
}

.desire-choice-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.desire-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 4px;
    border: 1px solid #c9c9d5;
    background: #ffffff;
    color: #6d28d9;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.desire-choice:hover {
    background: #f3e8ff;
    border-color: #a855f7;
    transform: translateY(-1px);
}

.desire-choice input {
    margin: 0;
    accent-color: #7c20ff;
}

.desire-choice span {
    line-height: 1;
}

.desire-skip-wrap {
    text-align: center;
    padding: 8px 0 6px;
}

.desire-skip {
    color: #7d1fb8;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.desire-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 0 4px;
    border-top: 1px solid #e5e5ef;
    background: #ffffff;
}

.desire-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desire-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: #d0d0dc;
    border-radius: 999px;
}

.desire-dots .dot.active {
    background: #d61a84;
}

.desire-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.desire-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.username-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.username-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.username-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.username-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.username-head-copy {
    text-align: center;
    padding-right: 28px;
}

.username-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.username-form {
    display: grid;
    gap: 18px;
    padding: 22px 22px 20px;
    color: #ffffff;
}

.username-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.6;
}

.username-field {
    display: grid;
    gap: 10px;
}

.username-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.username-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.username-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.username-status {
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.username-status.is-checking,
.username-status.is-available,
.username-status.is-error {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.username-status.is-checking::before,
.username-status.is-available::before,
.username-status.is-error::before {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    border-radius: 999px;
    vertical-align: middle;
    content: "";
}

.username-status.is-checking::before {
    content: "";
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #a855f7;
    animation: username-spin 0.8s linear infinite;
}

.username-status.is-available {
    color: #bbf7d0;
}

.username-status.is-available::before {
    content: "\2713";
    background: rgba(34, 197, 94, 0.18);
    color: #bbf7d0;
    font-size: 0.78rem;
    font-weight: 900;
}

.username-status.is-error {
    color: #fecaca;
}

.username-status.is-error::before {
    content: "!";
    background: rgba(255, 37, 58, 0.18);
    color: #fecaca;
    font-size: 0.85rem;
    font-weight: 900;
}

.username-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.username-suggestion {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    background: rgba(124, 32, 255, 0.12);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.username-rules {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.8;
}

.username-example {
    border-radius: 16px;
    padding: 18px 18px;
    background: linear-gradient(135deg, rgba(124, 32, 255, 0.26), rgba(217, 0, 255, 0.18));
    border: 1px solid rgba(155, 92, 255, 0.30);
    color: #ffffff;
    font-weight: 700;
    line-height: 1.6;
}

.username-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 8px;
}

.username-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.username-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.username-dots .dot.active {
    background: #d61a84;
}

.username-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.username-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.location-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.location-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.location-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.location-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.location-head-copy {
    text-align: center;
    padding-right: 28px;
}

.location-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.location-form {
    display: grid;
    gap: 18px;
    padding: 32px 22px 20px;
    color: #ffffff;
}

.location-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.04rem;
    line-height: 1.6;
}

.location-field-wrap {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.location-field {
    display: grid;
    gap: 0;
    width: 100%;
}

.location-input-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: stretch;
}

.location-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.location-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.location-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.location-current {
    min-height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    outline: none;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.location-current:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(196, 132, 252, 0.8);
    transform: translateY(-1px);
}

.location-current:focus-visible {
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.location-current:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.location-status {
    min-height: 24px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.5;
}

.location-status[data-tone="success"] {
    color: #bbf7d0;
}

.location-status[data-tone="error"] {
    color: #fecaca;
}

.location-status[data-tone="muted"] {
    color: rgba(255, 255, 255, 0.72);
}

.location-suggestions {
    display: grid;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(155, 92, 255, 0.30);
    border-radius: 18px;
    background: rgba(8, 9, 26, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
    max-height: 280px;
    overflow: auto;
}

.location-suggestion {
    width: 100%;
    text-align: left;
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.location-suggestion strong {
    font-size: 1rem;
    line-height: 1.2;
}

.location-suggestion span {
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.92rem;
}

.location-suggestion:hover,
.location-suggestion:focus-visible {
    border-color: rgba(168, 85, 247, 0.42);
    background: rgba(168, 85, 247, 0.12);
    transform: translateY(-1px);
}

.location-empty {
    padding: 10px 12px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.94rem;
}

.location-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 10px;
}

.location-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.location-dots .dot.active {
    background: #d61a84;
}

.location-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.location-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.access-shell {
    min-height: calc(100vh - 120px);
    display: grid;
    place-items: center;
    padding: 24px 0 48px;
}

.access-card {
    width: min(760px, 100%);
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(16, 17, 38, 0.98), rgba(9, 10, 34, 0.98));
    border: 1px solid rgba(155, 92, 255, 0.26);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.12);
}

.access-head {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.access-back {
    width: 28px;
    height: 28px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.8rem;
    line-height: 1;
    text-decoration: none;
}

.access-head-copy {
    text-align: center;
    padding-right: 28px;
}

.access-head h1 {
    margin: 4px 0 0;
    color: #ffffff;
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    line-height: 1.1;
}

.access-form {
    display: grid;
    gap: 18px;
    padding: 30px 22px 20px;
    color: #ffffff;
}

.access-copy p {
    margin: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.02rem;
    line-height: 1.6;
}

.access-options {
    width: min(520px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 14px;
}

.access-button {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 0 18px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.28);
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.access-button:hover {
    transform: translateY(-1px);
}

.access-google {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 245, 245, 0.95));
    color: #111827;
    border-color: rgba(209, 213, 219, 0.9);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.access-google:hover {
    border-color: rgba(156, 163, 175, 1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.access-email {
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
}

.access-google.is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.access-email.is-selected {
    border-color: rgba(168, 85, 247, 0.72);
    background: rgba(168, 85, 247, 0.12);
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.12);
}

.access-google-mark,
.access-email-mark {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.access-google-mark {
    color: #4285f4;
}

.access-email-mark {
    color: #c084fc;
}

.access-divider {
    width: fit-content;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.96rem;
    letter-spacing: 0.24em;
}

.access-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 6px;
}

.access-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.access-dots .dot {
    width: 8px;
    height: 8px;
    margin: 0;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.access-dots .dot.active {
    background: #d61a84;
}

.access-continue {
    min-width: min(340px, 100%);
    min-height: 56px;
}

.access-continue:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.access-credentials-card {
    max-width: 760px;
}

.access-credentials-form {
    display: grid;
    gap: 18px;
    padding: 30px 22px 20px;
    color: #ffffff;
}

.access-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
}

.access-summary span {
    display: block;
    color: rgba(255, 255, 255, 0.64);
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.access-summary strong {
    display: block;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.35;
    word-break: break-word;
}

.access-field-grid {
    display: grid;
    gap: 14px;
}

.access-field {
    display: grid;
    gap: 8px;
    color: rgba(255, 255, 255, 0.96);
    font-weight: 600;
}

.access-field span {
    font-size: 0.94rem;
}

.access-field input {
    width: 100%;
    min-height: 58px;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    outline: none;
    font-size: 1rem;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.access-field input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.14);
    background: rgba(255, 255, 255, 0.06);
}

.access-field input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.access-password-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 10px;
    align-items: stretch;
}

.access-eye {
    min-height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.34);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.access-eye:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(196, 132, 252, 0.8);
    transform: translateY(-1px);
}

.access-eye:focus-visible {
    box-shadow: 0 0 0 4px rgba(168, 85, 247, 0.16);
}

.access-rules {
    margin: 0;
    padding-left: 20px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.access-footer-credentials {
    padding-top: 10px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@keyframes username-spin {
    to { transform: rotate(360deg); }
}

.form-grid input,
.form-grid textarea,
.form-grid select,
.field input,
.field textarea,
.field select,
.signup-form select {
    background: var(--sf-surface) !important;
    border: 1px solid rgba(155, 92, 255, 0.28) !important;
    color: var(--sf-white) !important;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder,
.field input::placeholder,
.field textarea::placeholder {
    color: #8f8aa9 !important;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.signup-form select:focus {
    border-color: var(--sf-purple-light) !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.16) !important;
}

.alert-error {
    background: rgba(255, 37, 58, 0.14) !important;
    border-color: rgba(255, 37, 58, 0.24) !important;
    color: #ffd6db !important;
}

.alert-success {
    background: rgba(124, 32, 255, 0.14) !important;
    border-color: rgba(124, 32, 255, 0.24) !important;
    color: #ebe0ff !important;
}

.age-gate {
    background: rgba(5, 6, 22, 0.82) !important;
}

.age-card {
    background: rgba(16, 17, 38, 0.98) !important;
    border: 1px solid rgba(168, 85, 247, 0.34) !important;
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.58),
        0 0 40px rgba(124, 32, 255, 0.14) !important;
}

#age-gate .pill {
    background: rgba(124, 32, 255, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.34) !important;
}

#age-gate h2 {
    color: var(--sf-white) !important;
}

#age-gate p {
    color: var(--sf-text-secondary) !important;
}

#age-gate #age-reject {
    background: #171832 !important;
    border-color: var(--sf-border-strong) !important;
    color: #fff !important;
}

#age-gate #age-reject:hover {
    background: #202144 !important;
}

/* SexFan Home authenticated */
body.home-page {
    background:
        radial-gradient(circle at 14% 12%, rgba(255, 77, 141, 0.20), transparent 22%),
        radial-gradient(circle at 84% 14%, rgba(139, 92, 246, 0.22), transparent 26%),
        linear-gradient(180deg, #1a0730 0%, #0a0820 34%, #07070d 100%);
}

body.home-page .home-main {
    padding: 72px 0 52px;
}

.home-topbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 80;
    backdrop-filter: blur(24px);
    background: rgba(7, 7, 13, 0.84);
    border-bottom: 1px solid rgba(168, 85, 247, 0.18);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}

.home-topbar-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: auto minmax(220px, 1fr) minmax(260px, 1.1fr) auto;
    gap: 16px;
    align-items: center;
}

.home-search {
    min-height: 52px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 6px 10px 6px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(155, 92, 255, 0.24);
}

.home-search-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: #f9a8d4;
    font-size: 1.1rem;
}

.home-search-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-search input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #fff;
    font-size: 0.98rem;
}

.home-search input::placeholder {
    color: rgba(255, 255, 255, 0.48);
}

.home-search button {
    min-height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.home-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.home-menu a {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.02);
    font-weight: 700;
}

.home-menu a:hover,
.home-menu a.is-active {
    color: #fff;
    border-color: rgba(196, 132, 252, 0.26);
    background: rgba(168, 85, 247, 0.10);
}

.home-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.home-toolbar-btn {
    min-height: 44px;
    min-width: 44px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 800;
}

.home-toolbar-btn strong {
    min-width: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    font-size: 0.72rem;
    line-height: 1.3;
}

.home-user-chip {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.05);
}

.home-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 900;
}

.home-user-meta {
    display: grid;
    gap: 2px;
}

.home-user-meta strong {
    font-size: 0.92rem;
    line-height: 1.1;
}

.home-user-meta small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.76rem;
}

.home-email-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
    padding: 14px 16px;
    padding-right: 56px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(77, 18, 112, 0.86), rgba(37, 10, 64, 0.92));
    border: 1px solid rgba(168, 85, 247, 0.26);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
    position: relative;
    overflow: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease;
    will-change: opacity, transform;
}

.home-email-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.home-email-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.home-email-banner__close:hover,
.home-email-banner__close:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
    transform: scale(1.04);
}

.home-email-banner__copy {
    display: grid;
    gap: 4px;
}

.home-email-banner__copy strong {
    font-size: 1rem;
    color: #fff;
}

.home-email-banner__copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    line-height: 1.5;
}

.home-email-banner__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.home-email-banner__status {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
}

.home-hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 380px);
    gap: 18px;
    align-items: stretch;
    margin-top: 18px;
}

.home-hero-copy,
.home-spotlight,
.home-panel {
    padding: 24px;
}

.home-hero-copy h1,
.home-panel__head h2 {
    margin: 12px 0 10px;
    letter-spacing: -0.04em;
}

.home-hero-copy h1 {
    font-size: clamp(2.3rem, 4vw, 4.3rem);
    line-height: 0.98;
}

.home-hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.75;
}

.home-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.home-kpi {
    padding: 16px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-kpi strong {
    display: block;
    font-size: 1.6rem;
    margin-bottom: 4px;
}

.home-kpi span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 0.9rem;
}

.home-spotlight {
    display: grid;
    gap: 16px;
    align-content: start;
}

.home-spotlight__avatar {
    width: 100%;
    min-height: 180px;
    border-radius: 24px;
    display: grid;
    place-items: center;
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.5));
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.home-spotlight__copy strong {
    display: block;
    font-size: 1.22rem;
}

.home-spotlight__copy p {
    margin: 6px 0 0;
    color: rgba(255, 255, 255, 0.74);
}

.home-spotlight__actions {
    display: grid;
    gap: 10px;
}

.home-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.75fr);
    gap: 18px;
    margin-top: 18px;
}

.home-stack,
.home-sidebar {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.home-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: end;
    flex-wrap: wrap;
}

.home-panel__head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.4rem, 2vw, 2rem);
}

.home-panel__head a {
    color: #f9a8d4;
    font-weight: 700;
}

.home-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 112px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x proximity;
}

.home-online-card {
    display: grid;
    gap: 8px;
    justify-items: center;
    text-align: center;
    scroll-snap-align: start;
}

.home-online-card__media,
.home-feed-card__media,
.home-feed-card__media::before,
.home-online-card__media::before {
    position: relative;
    overflow: hidden;
}

.home-online-card__media {
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 900;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 35%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.34), rgba(139, 92, 246, 0.34));
    background-size: cover;
    background-position: center;
}

.home-online-card__media::before,
.home-feed-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.08), rgba(3, 7, 18, 0.46));
}

.home-online-card__meta {
    display: grid;
    gap: 2px;
}

.home-online-card__meta strong,
.home-feed-card__title-row strong {
    color: #fff;
}

.home-online-card__meta span,
.home-feed-card__title-row span,
.home-feed-card__body p {
    color: rgba(255, 255, 255, 0.72);
}

.home-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
    font-size: 0.74rem;
    font-weight: 800;
}

.home-empty-state,
.home-empty-mini {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.76);
}

.home-empty-state strong,
.home-empty-mini strong {
    display: block;
    color: #fff;
    margin-bottom: 6px;
}

.home-feed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.home-feed-card {
    overflow: hidden;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-feed-card__media {
    min-height: 280px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: column;
    gap: 12px;
    color: #fff;
    background-size: cover;
    background-position: center;
}

.home-feed-card__media > span {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 2rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

.home-feed-card__chips {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-feed-card__chips span,
.home-feed-card__type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.74rem;
    font-weight: 800;
}

.home-feed-card__body {
    display: grid;
    gap: 14px;
    padding: 16px;
}

.home-feed-card__title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.home-feed-card__title-row strong,
.home-feed-card__title-row span {
    display: block;
}

.home-feed-card__body p {
    margin: 0;
    line-height: 1.6;
}

.home-feed-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.home-list {
    display: grid;
    gap: 10px;
}

.home-list-item {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-list-item strong,
.home-list-item p {
    display: block;
}

.home-list-item strong {
    color: #fff;
    margin-bottom: 6px;
}

.home-list-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.home-progress {
    display: grid;
    gap: 12px;
}

.home-progress__label {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.home-progress__label strong {
    font-size: 2rem;
}

.home-progress__label span,
.home-progress__meta span,
.home-premium-copy {
    color: rgba(255, 255, 255, 0.72);
}

.home-progress__meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.home-shortcuts {
    display: grid;
    gap: 10px;
}

.home-shortcuts a {
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-stats div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.home-stats strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 4px;
}

.home-stats span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.88rem;
}

.home-tips-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.home-tips-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

.home-tips-list li span {
    color: #f472b6;
    font-weight: 900;
}

.home-tips-list li.is-done {
    color: rgba(255, 255, 255, 0.55);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.22);
}

.tone-a { background-image: linear-gradient(135deg, rgba(255, 77, 141, 0.42), rgba(139, 92, 246, 0.44)); }
.tone-b { background-image: linear-gradient(135deg, rgba(139, 92, 246, 0.42), rgba(255, 122, 89, 0.44)); }
.tone-c { background-image: linear-gradient(135deg, rgba(255, 77, 141, 0.36), rgba(255, 159, 67, 0.40)); }
.tone-d { background-image: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(139, 92, 246, 0.44)); }
.tone-e { background-image: linear-gradient(135deg, rgba(217, 0, 255, 0.28), rgba(255, 77, 141, 0.44)); }
.tone-f { background-image: linear-gradient(135deg, rgba(255, 159, 67, 0.36), rgba(139, 92, 246, 0.40)); }

/* Social home rewrite */
.social-home {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(280px, 340px);
    gap: 18px;
    align-items: start;
}

.social-landing-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin: 16px auto 14px;
}

.social-landing-head__copy {
    display: grid;
    gap: 8px;
}

.social-landing-head__copy h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.social-landing-head__copy p {
    margin: 0;
    max-width: 70ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.7;
}

.social-landing-head__tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-landing-head__tabs button {
    min-height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.social-landing-head__tabs button.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.90), rgba(255, 77, 141, 0.92));
    border-color: transparent;
    box-shadow: 0 12px 24px rgba(255, 77, 141, 0.18);
}

.social-col {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.social-col--left {
    position: sticky;
    top: 120px;
}

.social-col--right {
    position: sticky;
    top: 120px;
}

.social-panel {
    padding: 18px;
    background: rgba(12, 12, 28, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.social-panel__head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.social-panel__head--tight {
    margin-bottom: 10px;
}

.social-panel__head h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.1;
}

.social-profile-panel {
    overflow: hidden;
}

.social-profile-panel__cover {
    min-height: 112px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 32%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.social-profile-panel__body {
    display: grid;
    gap: 14px;
    padding-top: 16px;
}

.social-profile-panel__meta {
    display: grid;
    gap: 4px;
}

.social-profile-panel__meta strong {
    font-size: 1.15rem;
}

.social-profile-panel__meta span,
.social-profile-panel__meta small {
    color: rgba(255, 255, 255, 0.72);
}

.social-progress {
    display: grid;
    gap: 8px;
}

.social-progress small {
    color: rgba(255, 255, 255, 0.68);
}

.social-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.social-mini-stats span {
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 0.82rem;
}

.social-mini-stats strong {
    display: block;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 2px;
}

.social-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-quick-actions a {
    padding: 11px 12px;
    border-radius: 14px;
    text-align: center;
    color: #fff;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.social-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.social-summary-grid div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-summary-grid strong {
    display: block;
    font-size: 1.4rem;
    margin-bottom: 2px;
}

.social-summary-grid span,
.social-note,
.social-side-item p,
.social-side-suggestion p,
.social-side-alert p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.55;
}

.social-stories-panel {
    padding-bottom: 14px;
}

.story-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.story-chip {
    display: grid;
    gap: 8px;
    text-align: center;
    justify-items: center;
    color: #fff;
}

.story-chip strong,
.story-chip small {
    display: block;
    max-width: 92px;
}

.story-chip strong {
    font-size: 0.8rem;
    line-height: 1.15;
}

.story-chip small {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.74rem;
}

.story-chip__ring {
    width: 74px;
    height: 74px;
    padding: 3px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6, #d900ff);
}

.story-chip__avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.02rem;
    font-weight: 900;
    color: #fff;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.35), rgba(139, 92, 246, 0.35));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.story-empty {
    display: grid;
    place-items: center;
    padding: 20px;
    border-radius: 18px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.72);
    min-height: 92px;
}

.social-composer {
    padding: 16px 18px;
}

.social-composer form {
    display: grid;
    gap: 14px;
}

.social-composer__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 14px;
}

.social-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.social-avatar--composer {
    width: 52px;
    height: 52px;
}

.social-composer__field {
    display: grid;
    gap: 10px;
}

.social-composer__field > span {
    color: rgba(255, 255, 255, 0.86);
    font-weight: 700;
}

.social-composer__field textarea {
    width: 100%;
    resize: vertical;
    min-height: 104px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    font: inherit;
    line-height: 1.6;
}

.social-composer__field textarea::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.social-composer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.social-upload {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.20);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.social-upload input {
    display: none;
}

.social-composer__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-feed-panel {
    display: grid;
    gap: 16px;
}

.social-card,
.social-empty-feed {
    padding: 18px;
    border-radius: 26px;
    background: rgba(12, 12, 28, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
}

.social-card {
    display: grid;
    gap: 16px;
}

.social-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.social-card__author strong,
.social-card__author div {
    display: block;
}

.social-card__author strong {
    font-size: 1rem;
}

.social-card__author div {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.88rem;
}

.social-card__menu {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
}

.social-post-menu-wrap {
    position: relative;
    flex: 0 0 auto;
}

.social-post-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    padding: 8px;
    border-radius: 16px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(10, 7, 24, 0.96);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    z-index: 12;
}

.social-post-menu[hidden] {
    display: none;
}

.social-post-menu__form {
    margin: 0;
}

.social-post-menu__form button {
    width: 100%;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.08);
    color: #ffb5c1;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-post-menu__form button:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fff;
    transform: translateY(-1px);
}

.social-card__media {
    width: 100%;
    min-width: 0;
    min-height: 360px;
    margin: 0;
    border-radius: 22px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.social-post-menu {
    min-width: 220px;
    padding: 6px;
    border: 1px solid var(--sf-divider, #e4e5e9);
    border-radius: 12px;
    background: var(--sf-surface, #fff);
    box-shadow: 0 12px 28px rgba(31, 41, 55, .14);
}

.social-post-menu__item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--sf-text, #17181b);
    font: inherit;
    font-size: .9rem;
    text-align: left;
    cursor: pointer;
}

.social-post-menu__item:hover,
.social-post-menu__item:focus-visible {
    background: #f5eef8;
    color: var(--sf-accent-purple, #8d2bb7);
    outline: none;
}

.social-post-menu__item--danger,
.social-post-menu__item--danger:hover,
.social-post-menu__item--danger:focus-visible {
    color: #c6284a;
}

.social-post-menu__form .social-post-menu__item {
    margin: 0;
    border: 0;
    background: transparent;
}

@media (max-width: 640px) {
    .social-post-menu {
        right: 0;
        min-width: min(220px, calc(100vw - 32px));
        padding: 6px;
        border-radius: 12px;
    }
}

/* Global visual system: premium light content with SexFan dark chrome */
:root {
    --sf-page-bg: #f7f7f9;
    --sf-surface: #ffffff;
    --sf-text: #17181b;
    --sf-muted: #73767e;
    --sf-divider: #e4e5e9;
    --sf-accent: #d21b78;
    --sf-accent-purple: #8d2bb7;
    --sf-radius: 12px;
    --sf-shadow-soft: 0 5px 18px rgba(31, 41, 55, .05);
}

/* Administrative workspace */
body.admin-page { background: #f6f7fb; color: #17181b; overflow-x: hidden; }
body.admin-page .admin-content,
body.admin-page .admin-content h1,
body.admin-page .admin-content h2,
body.admin-page .admin-content h3,
body.admin-page .admin-content strong,
body.admin-page .admin-content p,
body.admin-page .admin-content dt,
body.admin-page .admin-content dd { color: #17181b; }
body.admin-page .admin-content .admin-page-head p,
body.admin-page .admin-content .admin-kicker,
body.admin-page .admin-content .admin-user-post small { color: #747783; }
body.admin-page .app-main { width: 100%; max-width: none; margin: 0; padding: 72px 0 0; background: #f6f7fb; }
body.admin-page .topbar { background: #11101b; border-bottom: 1px solid rgba(255,255,255,.08); }
body.admin-page .home-bottom-nav { display: none; }
body.admin-page .admin-shell { min-height: calc(100vh - 72px); display: flex; width: 100%; max-width: 1440px; margin: 0 auto; align-items: stretch; }
.admin-sidebar { position: sticky; top: 0; align-self: flex-start; height: calc(100vh - 72px); width: 214px; flex: 0 0 214px; background: #11101b; color: #fff; padding: 20px 12px; display: flex; flex-direction: column; }
.admin-sidebar__top { display: contents; }
.admin-menu-toggle { display: none; }
.admin-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 8px 10px 28px; }
.admin-brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg,#a526e8,#e51c87); font-weight: 800; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 9px; color: #b9bac7; text-decoration: none; font-size: .9rem; }
.admin-nav a:hover, .admin-nav a.is-active { background: rgba(214,42,145,.16); color: #fff; }
.admin-nav b { min-width: 20px; padding: 2px 6px; border-radius: 99px; background: #e32688; color: #fff; font-size: .72rem; text-align: center; }
.admin-sidebar__logout { margin-top: auto; color: #b9bac7; padding: 12px; text-decoration: none; }
.admin-content { flex: 1 1 auto; min-width: 0; max-width: 1160px; margin: 0 auto; padding: 24px clamp(18px,3vw,38px) 56px; }
.admin-page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.admin-page-head h1 { margin: 4px 0 6px; font-size: clamp(1.7rem,3vw,2.6rem); letter-spacing: -.04em; }
.admin-page-head p, .admin-kicker { color: #747783; margin: 0; }
.admin-kicker { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.admin-user { padding: 8px 12px; border: 1px solid #e2e3e8; border-radius: 99px; background: #fff; color: #6b6e78; font-size: .82rem; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 16px; }
.admin-stat, .admin-panel { background: #fff; border: 1px solid #e5e6eb; border-radius: 12px; box-shadow: 0 6px 18px rgba(31,41,55,.04); }
.admin-stat { display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; color: #17181b; text-decoration: none; }
.admin-stat strong { font-size: 1.65rem; letter-spacing: -.04em; }
.admin-stat span { color: #747783; font-size: .82rem; }
.admin-panel { padding: 18px; overflow: hidden; }
.admin-panel + .admin-panel { margin-top: 18px; }
.admin-panel__head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 16px; }
.admin-panel__head h2 { margin: 4px 0 0; font-size: 1.1rem; }
.admin-panel__head a, .admin-actions a { color: #a328b9; font-weight: 700; text-decoration: none; }
.admin-activity-list { display: grid; gap: 0; }
.admin-activity-list > div { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #eff0f3; }
.admin-activity-list p, .admin-activity-list small, .admin-table small { display: block; margin: 0; }
.admin-activity-list small, .admin-table small { color: #7b7e87; font-size: .78rem; margin-top: 3px; }
.admin-dot { width: 8px; height: 8px; flex: 0 0 8px; margin-top: 6px; border-radius: 50%; background: #d52289; }
.admin-alert { padding: 12px 15px; margin-bottom: 16px; border-radius: 9px; font-size: .9rem; }
.admin-alert--success { background: #eaf8f0; color: #187342; }.admin-alert--error { background: #fff0f2; color: #b42345; }
.admin-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-filters input { flex: 1 1 260px; min-width: 0; }.admin-filters select { flex: 0 1 170px; }
.admin-filters input, .admin-filters select, .admin-inline-form select, .admin-setting-form input { min-height: 40px; padding: 0 11px; border: 1px solid #dfe1e7; border-radius: 8px; background: #fff; color: #25262b; }
.admin-button, .admin-actions button, .admin-inline-form button { min-height: 36px; padding: 0 11px; border: 1px solid #dedfe5; border-radius: 7px; background: #fff; color: #444650; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.admin-button--primary { border-color: #c72a9e; background: #c72a9e; color: #fff; }.admin-button--danger, .admin-actions .is-danger { border-color: #efc8d0; color: #bf2948; }
.admin-table-wrap { overflow-x: auto; }.admin-table { width: 100%; border-collapse: collapse; min-width: 760px; font-size: .86rem; }.admin-table th { padding: 10px 12px; color: #747783; font-size: .72rem; text-align: left; text-transform: uppercase; letter-spacing: .04em; }.admin-table td { padding: 14px 12px; border-top: 1px solid #eff0f3; vertical-align: middle; }.admin-table td strong { color: #202126; }.admin-status { display: inline-block; margin: 2px 4px 2px 0; padding: 4px 7px; border-radius: 99px; font-size: .7rem; font-weight: 800; }.admin-status.is-success { background:#e8f7ef; color:#20824c; }.admin-status.is-danger { background:#fff0f2; color:#bb2b49; }.admin-status.is-info { background:#eee9ff; color:#7040a4; }.admin-status.is-warning { background:#fff4dc; color:#9a6414; }.admin-actions { display:flex; flex-wrap:wrap; gap:6px; }.admin-actions form, .admin-inline-form { margin:0; }.admin-inline-form { display:flex; gap:6px; align-items:center; }.admin-empty { padding: 30px 10px; color:#777a83; text-align:center; }.admin-post-excerpt { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-setting-form { display:flex; gap:10px; flex-wrap:wrap; padding-bottom:18px; border-bottom:1px solid #eff0f3; }.admin-setting-form input:first-of-type { flex:0 1 240px; }.admin-setting-form input { flex:1 1 220px; }.admin-settings-list > div { display:grid; grid-template-columns: 220px 1fr auto; gap:15px; padding:12px 0; border-bottom:1px solid #eff0f3; }.admin-settings-list code { color:#8c249f; }.admin-settings-list span, .admin-settings-list small { color:#666a74; }
@media (max-width: 900px) { .admin-stat-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 760px) { body.admin-page .admin-shell { display:block; }.admin-sidebar { position:relative; top:auto; height:auto; width:auto; padding:12px; }.admin-sidebar__top { display:flex; align-items:center; justify-content:space-between; gap:10px; }.admin-brand { padding:4px 6px 12px; }.admin-menu-toggle { display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid rgba(255,255,255,.15); border-radius:8px; background:transparent; color:#fff; font:inherit; font-size:.8rem; }.admin-nav { display:none; }.admin-sidebar.is-open .admin-nav { display:grid; margin-top:4px; }.admin-nav a { white-space:nowrap; padding:9px 10px; }.admin-sidebar__logout { display:none; }.admin-content { max-width:none; padding:20px 14px 40px; }.admin-page-head { margin-bottom:16px; }.admin-stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap:8px; }.admin-stat { padding:13px; }.admin-panel { padding:14px; border-radius:10px; }.admin-settings-list > div { grid-template-columns: 1fr; gap:4px; } }

/* Administrative topbar: compact, aligned and independent from the feed layout */
body.admin-page .home-topbar { height: 72px; background: #0d0b18; border-bottom: 1px solid rgba(255,255,255,.10); box-shadow: 0 5px 18px rgba(0,0,0,.16); backdrop-filter: blur(16px); }
body.admin-page .home-topbar-inner { width: min(1240px, calc(100% - 32px)); min-height: 72px; height: 72px; grid-template-columns: auto minmax(280px, 1fr) auto; grid-template-areas: "brand search toolbar"; gap: 18px; }
body.admin-page .brand-home { min-width: 154px; gap: 9px; }
body.admin-page .brand-home .brand-mark-home { width: 36px; height: 36px; border-radius: 11px; }
body.admin-page .brand-home .brand-wordmark strong { font-size: .92rem; }
body.admin-page .brand-home .brand-wordmark small { font-size: .68rem; white-space: nowrap; }
body.admin-page .home-search { width: 100%; max-width: 620px; min-height: 42px; height: 42px; padding: 4px 8px 4px 12px; gap: 8px; border-radius: 12px; background: rgba(255,255,255,.045); border-color: rgba(190,120,255,.28); }
body.admin-page .home-search-icon { display: inline-flex; width: 19px; height: 19px; color: #e7a5f5; }
body.admin-page .home-search-icon svg, body.admin-page .home-toolbar-btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.admin-page .home-search input { font-size: .86rem; }
body.admin-page .home-search button { min-height: 34px; height: 34px; padding: 0 15px; border-radius: 9px; background: #b743d1; font-size: .78rem; }
body.admin-page .home-toolbar { gap: 8px; flex-wrap: nowrap; }
body.admin-page .home-premium-btn { min-height: 40px; height: 40px; padding: 0 16px; border-radius: 11px; font-size: .8rem; box-shadow: none; }
body.admin-page .home-toolbar-btn { width: 42px; min-width: 42px; height: 40px; min-height: 40px; padding: 0; border-radius: 10px; }
body.admin-page .home-toolbar-btn > span:first-child { display: inline-flex; width: 18px; height: 18px; }
body.admin-page .home-toolbar-btn strong { position: absolute; top: -5px; right: -5px; min-width: 16px; padding: 1px 4px; font-size: .63rem; }
body.admin-page .home-user-chip { min-height: 40px; height: 40px; padding: 4px 10px 4px 4px; gap: 8px; border-radius: 11px; }
body.admin-page .home-user-avatar { width: 30px; height: 30px; }
body.admin-page .home-user-meta { gap: 1px; }.admin-page .home-user-meta strong { font-size: .78rem; }.admin-page .home-user-meta small { font-size: .65rem; }
@media (max-width: 900px) { body.admin-page .home-topbar-inner { gap: 10px; }.admin-page .home-search { max-width: none; }.admin-page .home-premium-btn { padding: 0 10px; }.admin-page .home-user-meta { display: none; }.admin-page .home-user-chip { padding-right: 4px; } }
@media (max-width: 680px) { body.admin-page .app-main { padding-top: 112px; } body.admin-page .home-topbar { height: auto; min-height: 64px; }.admin-page .home-topbar-inner { width: calc(100% - 20px); height: auto; min-height: 64px; padding: 10px 0; grid-template-columns: 1fr auto; grid-template-areas: "brand toolbar" "search search"; }.admin-page .brand-home { min-width: 0; }.admin-page .home-toolbar-btn--messages, .admin-page #home-toolbar-notifications, .admin-page .home-premium-btn { display: none; }.admin-page .home-search { grid-column: 1 / -1; max-width: none; }.admin-page .home-search button { padding: 0 12px; }.admin-page .home-user-chip { display: inline-flex; } }

/* Admin workspace: isolated shell with no public header, search or account menu. */
body.admin-page { min-width: 0; overflow-x: hidden; }
body.admin-page .admin-app-main { display: block; width: 100%; max-width: none; min-height: 100vh; margin: 0; padding: 0 !important; background: #f6f7fb; }
body.admin-page .admin-shell { display: flex; width: 100%; max-width: none; min-height: 100vh; margin: 0; align-items: stretch; }
body.admin-page .admin-sidebar { position: sticky; top: 0; z-index: 5; box-sizing: border-box; width: 240px; height: 100vh; flex: 0 0 240px; max-height: 100vh; overflow-x: hidden; overflow-y: auto; padding: 24px 14px; }
body.admin-page .admin-content { box-sizing: border-box; width: calc(100% - 240px); max-width: none; min-width: 0; margin: 0; padding: clamp(22px, 3vw, 40px) clamp(16px, 3vw, 44px) 64px; overflow-x: hidden; }
body.admin-page .admin-page-head { min-width: 0; flex-wrap: wrap; }
body.admin-page .admin-page-head > div { min-width: 0; }
body.admin-page .admin-page-head h1,
body.admin-page .admin-page-head p { overflow-wrap: anywhere; }
body.admin-page .admin-panel,
body.admin-page .admin-stat,
body.admin-page .admin-plan-card,
body.admin-page .admin-plan-premium-card { min-width: 0; box-sizing: border-box; }
body.admin-page .admin-table-wrap { width: 100%; max-width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }
body.admin-page .admin-table { max-width: none; }
body.admin-page .admin-actions,
body.admin-page .admin-inline-form,
body.admin-page .admin-user-actions { min-width: 0; flex-wrap: wrap; }
body.admin-page .admin-actions form { max-width: 100%; }
body.admin-page .admin-settings-list,
body.admin-page .admin-settings-list > div,
body.admin-page .admin-details,
body.admin-page .admin-detail-grid,
body.admin-page .admin-conversation-list,
body.admin-page .admin-plan-grid,
body.admin-page .admin-plans-redesign,
body.admin-page .admin-plans-grid { min-width: 0; max-width: 100%; box-sizing: border-box; }
body.admin-page .admin-plans-redesign { width: 100%; margin: 0; padding-inline: 0; }
body.admin-page .admin-email-form,
body.admin-page .admin-email-test-grid { min-width: 0; }
body.admin-page .admin-email-form input,
body.admin-page .admin-email-form select,
body.admin-page .admin-email-test-grid input,
body.admin-page .admin-email-test-grid select,
body.admin-page .admin-setting-form input,
body.admin-page .admin-setting-form select,
body.admin-page .admin-plan-card input { box-sizing: border-box; max-width: 100%; }
body.admin-page .admin-post-excerpt { max-width: min(300px, 100%); overflow-wrap: anywhere; }
body.admin-page img,
body.admin-page video,
body.admin-page iframe { max-width: 100%; }
@media (max-width: 760px) {
    body.admin-page .admin-shell { display: block; }
    body.admin-page .admin-sidebar { position: relative; top: auto; width: 100%; height: auto; max-height: none; overflow: visible; padding: 12px; }
    body.admin-page .admin-content { width: 100%; padding: 18px 12px 42px; overflow-x: hidden; }
    body.admin-page .admin-page-head { align-items: flex-start; gap: 10px; margin-bottom: 16px; }
    body.admin-page .admin-page-head > div { flex: 1 1 220px; }
    body.admin-page .admin-user { flex: 0 0 auto; }
    body.admin-page .admin-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    body.admin-page .admin-panel { padding: 14px; }
    body.admin-page .admin-panel__head { align-items: flex-start; flex-wrap: wrap; }
    body.admin-page .admin-filters { align-items: stretch; }
    body.admin-page .admin-filters input,
    body.admin-page .admin-filters select,
    body.admin-page .admin-filters button { width: 100%; flex: 1 1 100%; }
    body.admin-page .admin-setting-form { align-items: stretch; }
    body.admin-page .admin-setting-form input,
    body.admin-page .admin-setting-form select,
    body.admin-page .admin-setting-form button { width: 100%; flex: 1 1 100%; }
    body.admin-page .admin-detail-grid { grid-template-columns: minmax(0, 1fr); }
    body.admin-page .admin-conversation-list > div { align-items: flex-start; flex-wrap: wrap; }
    body.admin-page .admin-conversation-list > div > div { flex: 1 1 180px; }
    body.admin-page .admin-conversation-list > div > span { flex: 0 0 auto; }
    body.admin-page .admin-conversation-list > div > a { flex: 1 1 100%; }
    body.admin-page .admin-plans-hero { min-width: 0; }
    body.admin-page .admin-plans-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
    body.admin-page .admin-stat-grid,
    body.admin-page .admin-plans-metrics { grid-template-columns: minmax(0, 1fr); }
    body.admin-page .admin-page-head h1 { font-size: 1.7rem; }
    body.admin-page .admin-user { padding: 6px 9px; font-size: .76rem; }
    body.admin-page .admin-panel { padding: 12px; }
    body.admin-page .admin-details { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.admin-page .admin-actions .admin-button,
    body.admin-page .admin-actions button { max-width: 100%; }
}
body.admin-login-page {
    background: #f6f5fa;
    color: #17121d;
}

body.admin-login-page .admin-app-main {
    display: grid;
    min-height: 100svh;
    place-items: center;
    box-sizing: border-box;
    padding: clamp(24px, 5vw, 64px) !important;
    background:
        radial-gradient(circle at 12% 12%, rgba(191, 53, 218, .10), transparent 28%),
        radial-gradient(circle at 88% 86%, rgba(255, 35, 132, .08), transparent 30%),
        #f6f5fa;
}

body.admin-login-page .admin-login-card {
    display: grid;
    grid-template-columns: minmax(220px, .78fr) minmax(300px, 1fr);
    align-items: center;
    gap: clamp(34px, 6vw, 80px);
    width: min(900px, 100%);
    box-sizing: border-box;
    margin: 0;
    padding: clamp(30px, 5vw, 54px);
    border: 1px solid #eadff0;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(60, 25, 74, .12);
}

body.admin-login-page .admin-login-copy {
    min-width: 0;
}

body.admin-login-page .admin-login-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 36px;
}

body.admin-login-page .admin-login-brand__mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, #8b20ff, #ed1689);
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    box-shadow: 0 10px 22px rgba(194, 28, 181, .22);
}

body.admin-login-page .admin-login-brand__text {
    display: grid;
    gap: 2px;
}

body.admin-login-page .admin-login-brand__text strong {
    color: #17121d;
    font-size: 1.08rem;
    letter-spacing: -.03em;
}

body.admin-login-page .admin-login-brand__text small {
    color: #8d748f;
    font-size: .72rem;
    font-weight: 700;
}

body.admin-login-page .admin-login-kicker {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid #e8c9f0;
    border-radius: 999px;
    background: #fff8ff;
    color: #9b22a7;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

body.admin-login-page .admin-login-copy h1 {
    max-width: 9ch;
    margin: 17px 0 12px;
    color: #211529;
    font-size: clamp(2.35rem, 5vw, 3.6rem);
    line-height: .98;
    letter-spacing: -.06em;
}

body.admin-login-page .admin-login-copy p {
    max-width: 34ch;
    margin: 0;
    color: #746b7d;
    font-size: .9rem;
    line-height: 1.6;
}

body.admin-login-page .admin-login-form {
    gap: 16px;
}

body.admin-login-page .admin-login-field {
    gap: 7px;
    color: #35283d;
    font-size: .82rem;
    font-weight: 800;
}

body.admin-login-page .admin-login-field input {
    min-height: 48px;
    box-sizing: border-box;
    padding: 0 14px;
    border: 1px solid #e4d5ea;
    border-radius: 12px;
    background: #fcfbfd;
    color: #271c2e;
    font: inherit;
    font-weight: 500;
}

body.admin-login-page .admin-login-field input:focus {
    border-color: #bf3bd0;
    box-shadow: 0 0 0 4px rgba(191, 59, 208, .12);
}

body.admin-login-page .admin-login-password {
    position: relative;
    display: block;
}

body.admin-login-page .admin-login-password input {
    width: 100%;
    padding-right: 76px;
}

body.admin-login-page .admin-login-password__toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    min-height: 30px;
    padding: 0 8px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #92209e;
    font: inherit;
    font-size: .72rem;
    font-weight: 800;
    cursor: pointer;
}

body.admin-login-page .admin-login-password__toggle:hover,
body.admin-login-page .admin-login-password__toggle:focus-visible {
    background: #f8eafa;
    color: #c01a91;
}

body.admin-login-page .admin-login-form > .btn {
    min-height: 48px;
    margin-top: 4px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #8b20ff, #ed1689);
    box-shadow: 0 12px 24px rgba(194, 28, 181, .20);
    font-size: .9rem;
    font-weight: 800;
}

body.admin-login-page .admin-login-form > .btn:hover,
body.admin-login-page .admin-login-form > .btn:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

body.admin-login-page .admin-login-form .alert {
    margin: 0;
}

@media (max-width: 700px) {
    body.admin-login-page .admin-app-main {
        min-height: 100svh;
        padding: 18px 14px !important;
    }

    body.admin-login-page .admin-login-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 22px;
        padding: 24px 20px;
        border-radius: 22px;
    }

    body.admin-login-page .admin-login-brand {
        margin-bottom: 22px;
    }

    body.admin-login-page .admin-login-copy h1 {
        max-width: none;
        margin: 13px 0 8px;
        font-size: clamp(2.15rem, 11vw, 3rem);
    }

    body.admin-login-page .admin-login-copy p {
        font-size: .82rem;
        line-height: 1.45;
    }

    body.admin-login-page .admin-login-form {
        gap: 13px;
    }
}

.sf-plans-page { max-width: 1080px; margin: 0 auto; padding: 34px 20px 72px; }
.sf-plans-page__intro { max-width: 680px; margin-bottom: 26px; }
.sf-plans-page__eyebrow { display: inline-block; color: #a51ab2; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.sf-plans-page__intro h1 { margin: 7px 0 8px; color: #21182a; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.08; }
.sf-plans-page__intro p { margin: 0; color: #72697a; line-height: 1.55; }
.sf-plans-page__active { display: inline-flex; margin-top: 14px; padding: 8px 12px; border: 1px solid #efd4f2; border-radius: 999px; background: #fff8ff; color: #7b587c; font-size: .8rem; }
.sf-plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.sf-plan-card { min-width: 0; padding: 22px; border: 1px solid #e9dce9; border-top: 3px solid #c32ab6; border-radius: 20px; background: #fff; box-shadow: 0 15px 36px rgba(69, 24, 85, .08); }
.sf-plan-card--premium { border-top-color: #8e27dc; background: linear-gradient(150deg, #fff, #fbf7ff); }
.sf-plan-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sf-plan-card__tag { color: #9a3fa1; font-size: .7rem; font-weight: 800; }
.sf-plan-card h2 { margin: 4px 0 0; color: #261a2e; font-size: 1.35rem; }
.sf-plan-card__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; background: linear-gradient(135deg, #a41cff, #ed1a8a); color: #fff; font-size: 1.4rem; }
.sf-plan-card--premium .sf-plan-card__icon { background: linear-gradient(135deg, #44216c, #bd4fe4); }
.sf-plan-card > p { min-height: 42px; margin: 13px 0 20px; color: #746b7a; font-size: .9rem; line-height: 1.45; }
.sf-plan-checkout { display: grid; gap: 10px; }
.sf-plan-checkout label { display: grid; gap: 6px; color: #34283c; font-size: .78rem; font-weight: 800; }
.sf-plan-checkout select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #e4c9ed; border-radius: 11px; background: #fff; color: #493d50; font: inherit; box-sizing: border-box; }
.sf-plan-checkout__submit { min-height: 44px; border: 0; border-radius: 12px; background: linear-gradient(100deg, #8d1cff, #ef166f); color: #fff; font: inherit; font-size: .84rem; font-weight: 900; cursor: pointer; box-shadow: 0 9px 20px rgba(184, 26, 205, .2); }
.sf-plan-checkout__submit:disabled { opacity: .62; cursor: wait; }
.sf-plan-checkout__feedback { min-height: 16px; color: #a31a66; font-size: .74rem; line-height: 1.35; }
.sf-pix-modal { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 18px; }
.sf-pix-modal[hidden] { display: none; }
.sf-pix-modal__backdrop { position: absolute; inset: 0; background: rgba(25, 15, 31, .52); }
.sf-pix-modal__dialog { position: relative; width: min(100%, 430px); max-height: calc(100dvh - 36px); overflow: auto; padding: 26px; border: 1px solid #ead6ef; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(35, 14, 45, .24); text-align: center; }
.sf-pix-modal__close { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: #f4eff5; color: #65586b; font-size: 1.3rem; cursor: pointer; }
.sf-pix-modal__dialog h2 { margin: 9px 30px 5px; color: #281a31; font-size: 1.25rem; }
.sf-pix-modal__amount { margin: 0 0 15px; color: #7b617d; font-size: .86rem; }
.sf-pix-modal__qr { display: block; width: min(100%, 220px); aspect-ratio: 1; margin: 0 auto 16px; object-fit: contain; }
.sf-pix-modal__copy-label { display: grid; gap: 6px; text-align: left; color: #45354d; font-size: .76rem; font-weight: 800; }
.sf-pix-modal__copy-label textarea { width: 100%; min-height: 78px; padding: 9px; border: 1px solid #e1c9e9; border-radius: 10px; background: #faf8fb; color: #5b4b62; font: .76rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; resize: none; box-sizing: border-box; }
.sf-pix-modal__dialog .sf-plan-checkout__submit { width: 100%; margin-top: 13px; }
.sf-pix-modal__hint { margin: 13px 0 0; color: #887d8d; font-size: .75rem; line-height: 1.4; }
.sf-pix-modal-open { overflow: hidden; }
.admin-gateway-credential { display: grid; gap: 4px; min-height: 54px; padding: 11px 13px; border: 1px solid #ebe1ee; border-radius: 11px; background: #fcf9fd; }
.admin-gateway-credential strong { color: #4b3153; font-size: .78rem; }
.admin-gateway-credential span { color: #8d7f91; font-size: .76rem; }
.admin-gateway-url { display: block; margin: 4px 0 15px; padding: 12px 14px; overflow-wrap: anywhere; border: 1px solid #ead9ef; border-radius: 10px; background: #fcf9fd; color: #7b2994; font: .78rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.admin-gateway-secret-control { display: flex; align-items: stretch; gap: 7px; }
.admin-gateway-secret-control input { flex: 1 1 auto; min-width: 0; }
.admin-gateway-secret-toggle { flex: 0 0 auto; padding: 0 11px; border: 1px solid #e1d4e5; border-radius: 8px; background: #faf7fb; color: #8f249e; font: inherit; font-size: .76rem; font-weight: 800; cursor: pointer; }
.admin-gateway-field-status { align-self: center; flex: 0 0 auto; color: #a21caf; font-size: .7rem; font-weight: 800; white-space: nowrap; }
@media (max-width: 700px) {
    .sf-plans-page { padding: 24px 14px 56px; }
    .sf-plans-grid { grid-template-columns: 1fr; gap: 14px; }
    .sf-plan-card { padding: 18px; border-radius: 17px; }
    .sf-plan-card > p { min-height: 0; margin-bottom: 15px; }
    .sf-pix-modal { align-items: end; padding: 0; }
    .sf-pix-modal__dialog { width: 100%; max-height: calc(100dvh - 10px); padding: 22px 18px 20px; border-radius: 20px 20px 0 0; }
}

body.home-page {
    --sf-home-bg: var(--sf-page-bg);
    --sf-home-surface: var(--sf-surface);
    --sf-home-text: var(--sf-text);
    --sf-home-muted: var(--sf-muted);
    --sf-home-divider: var(--sf-divider);
    overflow-x: hidden;
    background: var(--sf-home-bg) !important;
    color: var(--sf-home-text) !important;
}

body.home-page .home-topbar {
    background: #0d0b18 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.14) !important;
    backdrop-filter: none !important;
}

body.home-page .social-home,
body.home-page .home-feed-tabs,
body.home-page .home-email-banner,
body.home-page .home-notifications-panel {
    width: min(1120px, calc(100% - 32px));
}

body.home-page .social-home {
    margin-top: 12px;
    gap: 0;
}

body.home-page .social-stories-panel,
body.home-page .social-panel,
body.home-page .social-card,
body.home-page .social-empty-feed,
body.home-page .home-email-banner,
body.home-page .home-notifications-panel {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.home-page .social-stories-panel {
    padding: 4px 0 14px !important;
}

body.home-page .social-stories-panel__head {
    margin-bottom: 10px;
}

body.home-page .social-panel__eyebrow {
    margin-bottom: 3px;
    color: var(--sf-accent-purple) !important;
    font-size: .72rem;
    letter-spacing: .11em;
}

body.home-page .social-panel__head h2 {
    color: var(--sf-home-text) !important;
    font-size: 1rem;
}

body.home-page .social-panel__link {
    color: var(--sf-accent-purple) !important;
    font-size: .84rem;
}

body.home-page .story-strip--compact {
    grid-auto-columns: 78px;
    gap: 10px;
    padding-bottom: 2px;
}

body.home-page .story-chip {
    color: var(--sf-home-text) !important;
}

body.home-page .story-chip strong {
    max-width: 78px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .74rem;
}

body.home-page .story-chip small {
    color: var(--sf-home-muted) !important;
    font-size: .68rem;
}

body.home-page .story-chip__ring {
    width: 66px;
    height: 66px;
    padding: 2px;
    background: linear-gradient(135deg, var(--sf-accent), var(--sf-accent-purple));
}

body.home-page .story-chip__avatar {
    background-color: #f0f1f3;
    border: 2px solid var(--sf-home-bg);
}

body.home-page .story-chip--add .story-chip__ring {
    background: #f7e2f0;
}

body.home-page .story-chip--add .story-chip__avatar {
    background: #fff;
    color: var(--sf-accent);
}

body.home-page .story-chip__badges { display: none; }

body.home-page .home-feed-tabs {
    margin-top: 0;
    margin-bottom: 0;
}

body.home-page .home-feed-tabs__list {
    gap: 22px;
    padding: 0 0 8px;
    border-bottom: 1px solid var(--sf-home-divider) !important;
}

body.home-page .home-feed-tabs__item {
    padding: 9px 0 11px;
    color: var(--sf-home-muted) !important;
    font-size: .9rem;
}

body.home-page .home-feed-tabs__item.is-active {
    color: var(--sf-home-text) !important;
}

body.home-page .home-feed-tabs__item.is-active::after {
    bottom: -9px;
    height: 2px;
    border-radius: 0;
    background: var(--sf-accent) !important;
}

body.home-page .home-email-banner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 2px;
    padding: 10px 34px 10px 12px !important;
    border-bottom: 1px solid var(--sf-home-divider) !important;
    position: relative;
}

body.home-page .home-email-banner::before {
    content: '✉';
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fbe6f1;
    color: var(--sf-accent);
    font-size: .78rem;
}

body.home-page .home-email-banner__copy { gap: 2px; }
body.home-page .home-email-banner__copy strong { color: var(--sf-home-text) !important; font-size: .86rem; }
body.home-page .home-email-banner__copy p { color: var(--sf-home-muted) !important; font-size: .76rem; line-height: 1.4; }
body.home-page .home-email-banner__actions { justify-content: flex-end; }
body.home-page .home-email-banner__actions .btn {
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #ead6e9;
    border-radius: 7px;
    background: #fff;
    color: var(--sf-accent-purple);
    font-size: .75rem;
}
body.home-page .home-email-banner__close {
    top: 8px;
    right: 0;
    width: 25px;
    height: 25px;
    border: 0;
    background: #ececf0;
    color: #777a81;
}

body.home-page .social-feed-panel {
    gap: 0;
    background: var(--sf-home-surface) !important;
    border-radius: var(--sf-radius) !important;
    box-shadow: var(--sf-shadow-soft) !important;
}

body.home-page .social-card {
    gap: 12px;
    padding: 16px !important;
    background: var(--sf-home-surface) !important;
    border-bottom: 1px solid var(--sf-home-divider) !important;
}

body.home-page .social-card:last-of-type { border-bottom: 0 !important; }
body.home-page .social-card__author strong { color: var(--sf-home-text) !important; }
body.home-page .social-card__author div { color: var(--sf-home-muted) !important; }
body.home-page .social-card__menu {
    color: #5f636b;
    background: #fff;
    border-color: #e1e2e6;
}
body.home-page .social-card__body p { color: #41444b !important; }
body.home-page .social-card__metrics { color: var(--sf-home-muted) !important; }
body.home-page .social-card__media--single,
body.home-page .social-card__carousel { border-radius: 10px !important; }
body.home-page .social-card__toolbar { gap: 8px; }
body.home-page .social-icon-btn { border-color: #e1e2e6; background: #fff; color: #656870; }
body.home-page .social-icon-btn--reaction.is-reacted { color: var(--sf-accent) !important; }
body.home-page .social-reactions-toggle { color: #63666d; }
body.home-page .social-reaction-summary__chip { border-color: #e6e1e8; background: #faf9fb; }

body.home-page .home-bottom-nav__shell {
    background: rgba(13,11,24,.96);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 -8px 22px rgba(0,0,0,.16);
    backdrop-filter: blur(14px);
}
body.home-page .home-bottom-nav__item { border-radius: 12px; }
body.home-page .home-bottom-nav__item.is-active {
    background: rgba(210,27,120,.16);
    box-shadow: inset 0 0 0 1px rgba(210,27,120,.28);
}

@media (max-width: 760px) {
    body.home-page .social-home,
    body.home-page .home-feed-tabs,
    body.home-page .home-email-banner,
    body.home-page .home-notifications-panel { width: calc(100% - 24px); }
    body.home-page .social-stories-panel { padding-top: 2px !important; }
    body.home-page .social-card { padding: 14px 0 !important; }
    body.home-page .social-feed-panel { border-radius: 0 !important; box-shadow: none !important; }
    body.home-page .home-email-banner { grid-template-columns: auto minmax(0,1fr); }
    body.home-page .home-email-banner__actions { grid-column: 2; justify-content: flex-start; }
    body.home-page .home-email-banner__actions .btn { width: fit-content; }
    body.home-page .home-bottom-nav__shell { border-radius: 18px; }
}

/* Search discovery redesign */
body.search-page {
    background: #f5f6fa;
    color: #1f2937;
}

body.search-page .search-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e7e8ef;
    box-shadow: 0 2px 14px rgba(31, 41, 55, 0.06);
}

body.search-page .search-topbar__inner {
    min-height: 66px;
    display: flex;
    align-items: center;
    gap: 14px;
}

body.search-page .search-topbar__back {
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
}

body.search-page .search-topbar__title {
    color: #111827;
    flex: 1 1 auto;
}

body.search-page .search-filter-button,
body.search-page .search-topbar__filter {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #ec1980, #a72bc7);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

body.search-page .search-main {
    width: min(1120px, calc(100% - 32px));
    padding-top: 22px;
    padding-bottom: 132px !important;
}

body.search-page .search-shell {
    gap: 14px;
}

body.search-page .search-toolbar,
body.search-page .search-filters,
body.search-page .search-tip,
body.search-page .search-result,
body.search-page .search-empty {
    background: #fff;
    border: 1px solid #e7e8ef;
    box-shadow: 0 5px 18px rgba(31, 41, 55, 0.05);
    backdrop-filter: none;
}

body.search-page .search-toolbar {
    padding: 14px 16px;
    border-radius: 14px;
}

body.search-page .search-toolbar__form {
    gap: 12px;
}

body.search-page .search-toolbar__query input,
body.search-page .search-toolbar__sort select,
body.search-page .search-filters__form input,
body.search-page .search-filters__form select {
    background: #fff;
    border-color: #dfe3ea;
    color: #1f2937;
}

body.search-page .search-toolbar__sort span,
body.search-page .search-filters__form label span {
    color: #6b7280;
}

body.search-page .search-toolbar__view {
    padding: 3px;
    border-radius: 11px;
    background: #f1f2f6;
}

body.search-page .search-view-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6b7280;
}

body.search-page .search-view-button.is-active {
    background: #fff;
    color: #a21caf;
    box-shadow: 0 2px 7px rgba(31, 41, 55, 0.10);
}

body.search-page .search-tip {
    padding: 11px 14px;
    border-radius: 13px;
    background: #fff8fc;
    border-color: #f5d9e9;
}

body.search-page .search-tip__copy {
    gap: 10px;
}

body.search-page .search-tip__icon {
    width: 30px;
    height: 30px;
    background: #fce7f3;
    color: #db2777;
    font-size: 1rem;
}

body.search-page .search-tip p {
    color: #4b5563;
    font-size: .9rem;
}

body.search-page .search-tip__close {
    width: 30px;
    height: 30px;
    background: #f3edf2;
    color: #6b7280;
}

body.search-page .search-filters {
    border-radius: 14px;
}

body.search-page .search-results {
    gap: 0;
    overflow: visible;
}

body.search-page .search-results.is-list {
    background: #fff;
    border: 1px solid #e7e8ef;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(31, 41, 55, 0.05);
}

body.search-page .search-result {
    position: relative;
    min-width: 0;
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
    box-shadow: none;
}

body.search-page .search-result:last-child {
    border-bottom: 0;
}

body.search-page .search-result__main {
    min-width: 0;
    gap: 14px;
}

body.search-page .search-result__avatar {
    width: 74px;
    height: 74px;
    background: linear-gradient(135deg, #c026d3, #ec4899);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.38);
}

body.search-page .search-result__dot {
    width: 13px;
    height: 13px;
    border-color: #fff;
}

body.search-page .search-result__title-line strong {
    color: #111827;
    font-size: 1.05rem;
}

body.search-page .search-result__headline,
body.search-page .search-result__location {
    color: #4b5563;
    font-size: .9rem;
}

body.search-page .search-result__location {
    color: #6b7280;
}

body.search-page .search-pill.is-verified {
    min-height: 22px;
    background: #e8f1ff;
    color: #2563eb;
}

body.search-page .search-pill.is-premium {
    background: #f4e8ff;
    color: #9333ea;
}

body.search-page .search-result__content {
    gap: 13px;
}

body.search-page .search-result__bio,
body.search-page .search-result__bio p,
body.search-page .search-result__bio summary {
    color: #4b5563;
}

body.search-page .search-result__bio summary {
    line-height: 1.5;
}

body.search-page .search-result__bio summary span {
    color: #c026d3;
}

body.search-page .search-result__gallery {
    gap: 6px;
}

body.search-page .search-result__photo {
    min-width: 0;
    height: clamp(110px, 16vw, 170px);
    min-height: 0;
    border-radius: 10px;
    background: #f1f3f6;
}

body.search-page .search-result__photo img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

body.search-page .search-result__footer {
    align-items: center;
}

body.search-page .search-result__status {
    gap: 3px;
}

body.search-page .search-result__status strong {
    color: #16a34a;
}

body.search-page .search-result__status small {
    color: #6b7280;
}

body.search-page .search-action {
    border-color: #e5e7eb;
    background: #fff;
    color: #4b5563;
}

body.search-page .search-action--add {
    min-width: 126px;
    height: 40px;
    border: 0;
    background: linear-gradient(135deg, #ec1980, #a72bc7);
    color: #fff;
}

body.search-page .search-action--icon {
    color: #a21caf;
}

body.search-page .search-empty {
    border-radius: 16px;
}

body.search-page .search-empty strong,
body.search-page .search-empty p {
    color: #374151;
}

@media (min-width: 900px) {
    body.search-page .search-results.is-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
    }

    body.search-page .search-results.is-grid .search-result {
        border: 1px solid #e7e8ef;
        border-radius: 16px;
        box-shadow: 0 5px 18px rgba(31, 41, 55, 0.05);
    }
}

@media (max-width: 760px) {
    body.search-page .search-main {
        width: min(100% - 20px, 1120px);
        padding-top: 14px;
        padding-bottom: 148px !important;
    }

    body.search-page .search-toolbar {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
    }

    body.search-page .search-toolbar__form {
        display: contents;
    }

    body.search-page .search-toolbar__sort {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    body.search-page .search-toolbar__view {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    body.search-page .search-result {
        padding: 17px 14px;
    }

    body.search-page .search-result__avatar {
        width: 64px;
        height: 64px;
    }

    body.search-page .search-result__photo {
        height: clamp(96px, 29vw, 150px);
    }

    body.search-page .search-result__footer {
        align-items: stretch;
    }

    body.search-page .search-result__actions {
        width: 100%;
    }

    body.search-page .search-result__actions form:first-child {
        flex: 1 1 auto;
    }

    body.search-page .search-action--add {
        width: 100%;
    }
}

@media (max-width: 420px) {
    body.search-page .search-result__main {
        gap: 10px;
    }

    body.search-page .search-result__avatar {
        width: 58px;
        height: 58px;
    }

    body.search-page .search-result__title-line strong {
        font-size: 1rem;
    }
}

.social-card__media--placeholder {
    display: grid;
    place-items: center;
    gap: 10px;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(255, 77, 141, 0.30), rgba(139, 92, 246, 0.34));
    color: #fff;
    font-size: 2.2rem;
    font-weight: 900;
}

.social-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 7, 18, 0.08), rgba(7, 7, 18, 0.40));
}

.social-card__media--profile {
    display: grid;
    place-items: end start;
    padding: 16px;
}

.social-card__media-badge {
    position: relative;
    z-index: 1;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(124, 32, 255, 0.72);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.social-card__media--placeholder .social-card__media-badge {
    background: rgba(255, 255, 255, 0.12);
}

.social-card__body p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.75;
    font-size: 1rem;
}

.social-card__foot {
    display: grid;
    gap: 12px;
}

.social-card__metrics {
    display: flex;
    column-gap: 16px;
    row-gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.84rem;
}

.social-card__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-card__toolbar-action {
    display: block;
}

.social-icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.social-icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-icon-btn path {
    fill: currentColor;
    stroke: none;
}

.social-icon-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 132, 252, 0.32);
    background: rgba(168, 85, 247, 0.10);
}

.social-icon-btn.is-liked {
    color: #ff4d8d;
    border-color: rgba(255, 77, 141, 0.28);
    background: rgba(255, 77, 141, 0.12);
}

.social-icon-btn.is-liked:hover {
    border-color: rgba(255, 77, 141, 0.40);
    background: rgba(255, 77, 141, 0.18);
}

.social-icon-btn--reaction {
    position: relative;
    overflow: visible;
}

.social-icon-btn--reaction .social-reaction-trigger__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.social-icon-btn--reaction .social-reaction-trigger__emoji {
    font-size: 1.05rem;
}

.social-icon-btn--reaction.is-reacted {
    color: #fff;
    border-color: rgba(196, 132, 252, 0.32);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.18));
    box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.08), 0 10px 18px rgba(168, 85, 247, 0.16);
}

.social-icon-btn--reaction.is-like {
    color: #ff4d8d;
}

.social-icon-btn--reaction.is-love {
    color: #ff6ab8;
}

.social-icon-btn--reaction.is-smile {
    color: #f59e0b;
}

.social-icon-btn--reaction.is-devil {
    color: #cf59ff;
}

.social-icon-btn--reaction.is-fire {
    color: #ff8a3d;
}

.social-icon-btn--reaction.is-splash {
    color: #5fd3ff;
}

.social-reaction-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    touch-action: manipulation;
}

.social-reaction-bar {
    position: absolute;
    left: 0;
    bottom: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(12, 12, 26, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.20);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.36);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    transform-origin: left bottom;
    pointer-events: none;
    z-index: 30;
    touch-action: manipulation;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.social-reaction-wrap:hover .social-reaction-bar,
.social-reaction-wrap:focus-within .social-reaction-bar,
.social-reaction-wrap.is-open .social-reaction-bar {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.social-reaction-wrap.is-selection-closed .social-reaction-bar {
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.96);
    pointer-events: none;
}

.social-reaction-bar__item {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    font-size: 19px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.social-reaction-bar__item:hover,
.social-reaction-bar__item.is-active {
    transform: translateY(-2px) scale(1.07);
    border-color: rgba(196, 132, 252, 0.38);
    background: rgba(168, 85, 247, 0.14);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.22);
}

.social-reaction-bar__item.is-like { color: #ff4d8d; }
.social-reaction-bar__item.is-love { color: #ff6ab8; }
.social-reaction-bar__item.is-smile { color: #f59e0b; }
.social-reaction-bar__item.is-devil { color: #cf59ff; }
.social-reaction-bar__item.is-fire { color: #ff8a3d; }
.social-reaction-bar__item.is-splash { color: #5fd3ff; }

.social-reactions-toggle {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-start;
    white-space: nowrap;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(233, 213, 255, 0.95);
    font-size: 0.86rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.social-reactions-toggle:disabled {
    cursor: default;
    opacity: 0.72;
}

.social-reaction-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 2px;
    flex-wrap: wrap;
}

.social-reaction-summary__chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.74rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.social-reaction-summary__emoji {
    font-size: 0.82rem;
    line-height: 1;
}

.social-reaction-summary--panel {
    margin-bottom: 10px;
}

.social-reactions-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .28s ease, opacity .28s ease, transform .28s ease;
    border-top: 1px solid rgba(155, 92, 255, 0.12);
    padding-top: 0;
}

.social-reactions-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 12px;
}

.social-reactions-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.social-reactions-panel__head strong {
    color: #fff;
    font-size: 0.94rem;
}

.social-reactions-list {
    display: grid;
    gap: 10px;
}

.social-reaction-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-reaction-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
}

.social-reaction-item__badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(155, 92, 255, 0.14);
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
}

.social-reaction-item__badge small {
    font-size: 0.72rem;
    line-height: 1;
}

.social-reaction-item.is-self {
    border-color: rgba(244, 63, 94, 0.24);
    box-shadow: inset 0 0 0 1px rgba(244, 63, 94, 0.08);
}

.social-icon-btn--secondary {
    color: rgba(255, 255, 255, 0.86);
}

.social-comment-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 8px;
    align-items: stretch;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height .24s ease, opacity .24s ease, transform .24s ease;
    transform: translateY(-4px);
}

.social-comment-form.is-open {
    max-height: 72px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.social-comment-form input {
    min-width: 0;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    outline: none;
    width: 100%;
    min-height: 42px;
}

.social-action {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.22);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.social-action:hover {
    transform: translateY(-1px);
    border-color: rgba(196, 132, 252, 0.32);
    background: rgba(168, 85, 247, 0.10);
}

.social-side-list {
    display: grid;
    gap: 10px;
}

.social-side-item,
.social-side-suggestion,
.social-side-alert {
    padding: 14px 15px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.social-side-item strong,
.social-side-suggestion strong,
.social-side-alert strong {
    display: block;
    margin-bottom: 6px;
    color: #fff;
}

.social-side-person {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.social-side-person__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(139, 92, 246, 0.50));
}

.social-side-person__body {
    display: grid;
    gap: 2px;
}

.social-side-person__body strong {
    color: #fff;
}

.social-side-person__body small {
    color: rgba(255, 255, 255, 0.68);
}

.social-tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.social-tag-cloud a,
.social-tag-cloud span {
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.social-empty-inline {
    color: rgba(255, 255, 255, 0.68);
}

.social-feed-sentinel {
    height: 1px;
}

.home-email-banner {
    margin-top: 12px;
    margin-bottom: 16px;
}

@media (max-width: 1280px) {
    .social-home {
        grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    }

    .social-col--right {
        grid-column: 1 / -1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        position: static;
    }
}

@media (max-width: 1024px) {
    .social-home {
        grid-template-columns: 1fr;
    }

    .social-landing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-col--left,
    .social-col--right {
        position: static;
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 300px;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 108px;
    }

    .social-composer__top,
    .social-card__head {
        grid-template-columns: 1fr;
    }

    .social-card__toolbar {
        gap: 8px;
    }

    .social-icon-btn {
        width: 40px;
        height: 40px;
    }

    .social-comment-form {
        grid-template-columns: minmax(0, 1fr) 108px;
    }

    .social-profile-panel__cover {
        min-height: 96px;
    }

    .social-mini-stats,
    .social-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .social-quick-actions {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 260px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 116px;
    }

    .social-mini-stats,
    .social-summary-grid {
        grid-template-columns: 1fr;
    }

    .story-strip {
        grid-auto-columns: 84px;
    }

    .story-chip__ring {
        width: 68px;
        height: 68px;
    }
}

@media (max-width: 1180px) {
    .home-topbar-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "brand search toolbar"
            "menu menu menu";
        padding-block: 12px 14px;
    }

    .brand-home {
        grid-area: brand;
    }

    .home-search {
        grid-area: search;
    }

    .home-menu {
        grid-area: menu;
        justify-content: flex-start;
    }

    .home-toolbar {
        grid-area: toolbar;
    }

    .home-hero-panel,
    .home-main-grid {
        grid-template-columns: 1fr;
    }

    .home-feed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 168px;
    }

    .home-topbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "menu"
            "toolbar";
    }

    .home-toolbar {
        justify-content: flex-start;
    }

    .home-email-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-kpi-grid,
    .home-stats {
        grid-template-columns: 1fr 1fr;
    }

    .home-feed-card__media {
        min-height: 240px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 184px;
    }

    .home-kpi-grid,
    .home-stats {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-spotlight,
    .home-panel {
        padding: 18px;
    }

    .home-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.discover-card,
.metric,
.content-card {
    background: rgba(16, 17, 38, 0.94) !important;
    border: 1px solid var(--sf-border) !important;
}

.discover-avatar {
    background: linear-gradient(135deg, var(--sf-purple), var(--sf-magenta), var(--sf-red)) !important;
    color: #fff !important;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.08) !important;
}

.progress-bar span {
    background: linear-gradient(135deg, #7C20FF 0%, #D900FF 55%, #FF253A 100%) !important;
}

/* SexFan social home override */
body.home-page .home-main {
    padding: 56px 0 40px;
}

.home-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "brand search toolbar";
}

.brand-home {
    grid-area: brand;
    min-width: 0;
}

.home-search {
    grid-area: search;
    max-width: 760px;
}

.home-toolbar {
    grid-area: toolbar;
    flex-wrap: nowrap;
}

.home-premium-btn {
    white-space: nowrap;
}

.home-toolbar-btn {
    position: relative;
}

.home-user-chip {
    min-width: 0;
}

.social-landing-head {
    margin: 14px auto 16px;
}

.social-home {
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 320px);
    gap: 18px;
}

.social-col--center {
    min-width: 0;
}

.social-col--right {
    top: 110px;
    grid-template-columns: 1fr;
}

.social-panel,
.social-card,
.social-empty-feed {
    backdrop-filter: blur(16px);
}

.social-feed-panel {
    padding-bottom: 8px;
}

.story-strip {
    padding-bottom: 4px;
}

.social-card {
    border-radius: 28px;
}

.social-card__media {
    min-height: 380px;
}

.social-card__actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.social-card__actions--ghost {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-action {
    min-height: 44px;
}

.social-side-person {
    padding: 12px 13px;
}

.social-side-item,
.social-side-alert {
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-tag-cloud a,
.social-tag-cloud span {
    background: rgba(255, 255, 255, 0.05);
}

.social-feed-sentinel {
    margin-top: -4px;
}

.home-email-banner {
    margin-top: 10px;
    margin-bottom: 16px;
}

.social-feed-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin: 10px auto 12px;
}

.social-feed-toolbar__tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-feed-toolbar__tabs button {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
    cursor: pointer;
}

.social-feed-toolbar__tabs button.is-active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.82), rgba(255, 77, 141, 0.88));
    border-color: transparent;
    color: #fff;
}

.social-landing-head {
    display: none;
}

.social-home {
    grid-template-columns: minmax(0, 1.28fr) minmax(250px, 300px);
    gap: 16px;
}

.social-col {
    gap: 14px;
}

.social-panel {
    padding: 15px;
    border-radius: 22px;
    background: rgba(10, 10, 24, 0.90);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.social-panel__head {
    margin-bottom: 12px;
}

.social-panel__head h2 {
    font-size: 1.18rem;
}

.social-stories-panel {
    padding-bottom: 12px;
}

.story-strip {
    grid-auto-columns: 88px;
    gap: 10px;
}

.story-chip {
    padding: 6px 4px 0;
}

.story-chip strong {
    font-size: 0.80rem;
    line-height: 1.15;
}

.story-chip small {
    font-size: 0.73rem;
}

.social-card {
    padding: 15px;
    border-radius: 22px;
    gap: 12px;
    background: rgba(10, 10, 24, 0.90);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.20);
}

.social-card__media {
    min-height: 320px;
    border-radius: 18px;
}

.social-card__body p {
    line-height: 1.65;
}

.social-card__metrics {
    gap: 10px 14px;
    font-size: 0.88rem;
}

.social-comments-toggle {
    width: fit-content;
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(216, 180, 254, 0.96);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.social-comments-toggle:hover {
    color: #fff;
}

.social-comments-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: max-height .28s ease, opacity .28s ease, transform .28s ease;
    border-top: 1px solid rgba(155, 92, 255, 0.12);
    padding-top: 0;
}

.social-comments-panel.is-open {
    max-height: 1200px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 12px;
}

.social-comments-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.86rem;
    margin-bottom: 10px;
}

.social-comments-panel__head strong {
    color: #fff;
    font-size: 0.94rem;
}

.social-comments-list {
    display: grid;
    gap: 10px;
}

.social-comment-item {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(155, 92, 255, 0.12);
}

.social-avatar--comment {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
}

.social-comment-item__content {
    min-width: 0;
}

.social-comment-item__meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 6px;
}

.social-comment-item__meta-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.social-comment-item__meta strong {
    font-size: 0.92rem;
    color: #fff;
}

.social-comment-item__meta span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.64);
}

.social-comment-item__delete {
    flex: 0 0 auto;
}

.social-comment-item__delete button {
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.08);
    color: #ffb5c1;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-comment-item__delete button:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.42);
    color: #fff;
    transform: translateY(-1px);
}

.social-comment-item__content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.94rem;
    line-height: 1.45;
    word-break: break-word;
}

.social-action {
    min-height: 40px;
}

.social-col--right {
    top: 108px;
    gap: 14px;
}

.social-side-person,
.social-side-item,
.social-side-alert {
    border-radius: 16px;
}

.social-side-person {
    padding: 10px 12px;
}

.social-side-person__avatar {
    width: 42px;
    height: 42px;
    border-radius: 14px;
}

.social-side-person__body strong {
    font-size: 0.95rem;
}

.social-side-person__body small,
.social-side-item p,
.social-side-alert p,
.social-note {
    font-size: 0.90rem;
    line-height: 1.45;
}

.social-tag-cloud {
    gap: 8px;
}

.social-tag-cloud a,
.social-tag-cloud span {
    padding: 9px 11px;
    font-size: 0.78rem;
}

@media (max-width: 1280px) {
    .social-home {
        grid-template-columns: minmax(0, 1fr);
    }

    .social-col--right {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .home-topbar-inner {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "brand toolbar"
            "search search";
        gap: 12px;
    }

    .home-toolbar {
        justify-content: flex-end;
    }

    .social-landing-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .social-feed-toolbar {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 136px;
    }

    .home-topbar-inner {
        grid-template-columns: 1fr;
        grid-template-areas:
            "brand"
            "search"
            "toolbar";
    }

    .home-toolbar {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .social-col--right {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 0;
    }

    .social-reaction-bar {
        max-width: min(100%, 320px);
        flex-wrap: wrap;
    }
}

@media (max-width: 540px) {
    body.home-page .home-main {
        padding-top: 146px;
    }

    .home-search {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .home-search button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .social-card__actions,
    .social-card__actions--ghost {
        grid-template-columns: 1fr;
    }

    .social-card__media {
        min-height: 260px;
    }

    .social-card__metrics {
        align-items: flex-start;
        gap: 8px;
    }

    .social-reactions-toggle {
        width: 100%;
        justify-content: flex-start;
    }

    .social-reaction-bar {
        max-width: calc(100vw - 48px);
        flex-wrap: wrap;
    }

    .social-comment-item {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
        padding: 9px 10px;
    }

    .social-avatar--comment {
        width: 36px;
        height: 36px;
    }

    .social-comment-item__meta {
        flex-direction: column;
    }

    .social-comment-item__delete {
        align-self: flex-start;
    }

    .social-feed-toolbar {
        justify-content: flex-start;
    }

    .social-feed-toolbar__tabs {
        width: 100%;
    }
}

/* Minimal SexFan home override */
body.home-page .social-landing-head,
body.home-page .social-feed-toolbar,
body.home-page .social-col--right {
    display: none !important;
}

body.home-page .social-stories-panel {
    display: block !important;
}

body.home-page .social-home {
    width: min(1120px, calc(100vw - 24px));
    margin: 12px auto 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

body.home-page .social-col--center {
    min-width: 0;
    display: grid;
    gap: 12px;
}

body.home-page .social-panel,
body.home-page .social-card,
body.home-page .social-empty-feed {
    border-radius: 18px;
    background: rgba(9, 9, 24, 0.96);
    border: 1px solid rgba(155, 92, 255, 0.12);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

body.home-page .social-stories-panel {
    padding: 12px;
    background: rgba(12, 12, 30, 0.94);
}

body.home-page .social-stories-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.home-page .social-stories-panel__head > div {
    display: grid;
    gap: 2px;
}

body.home-page .social-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 3px;
    color: rgba(216, 180, 254, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.home-page .social-panel__head h2 {
    margin: 0;
    font-size: 1.02rem;
}

body.home-page .social-panel__link {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
}

body.home-page .story-strip--compact {
    grid-auto-columns: 74px;
    gap: 8px;
}

body.home-page .story-chip {
    padding: 4px 2px 0;
}

body.home-page .story-chip strong {
    font-size: 0.74rem;
}

body.home-page .story-chip small {
    font-size: 0.68rem;
}

body.home-page .social-composer {
    padding: 12px;
    background: rgba(14, 14, 34, 0.96);
    border: 1px solid rgba(155, 92, 255, 0.14);
    box-shadow: 0 8px 20px rgba(18, 12, 44, 0.12);
}

body.home-page .social-composer__top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

body.home-page .social-avatar--composer {
    width: 44px;
    height: 44px;
}

body.home-page .social-composer__trigger {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.18);
    color: rgba(28, 26, 48, 0.74);
    border-radius: 999px;
    padding: 0 12px 0 18px;
    gap: 14px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(18, 12, 44, 0.06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

body.home-page .social-composer__trigger:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(18, 12, 44, 0.10);
    border-color: rgba(155, 92, 255, 0.28);
}

body.home-page .social-composer__trigger-text {
    min-width: 0;
    text-align: left;
    font-size: 0.98rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page .social-composer__trigger-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.20));
    color: #6d28d9;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
}

body.home-page .social-composer__trigger-icon svg {
    width: 21px;
    height: 21px;
    fill: currentColor;
}

body.home-page .social-composer__bottom,
body.home-page .social-upload {
    display: none !important;
}

body.home-page .social-feed-panel {
    display: grid;
    gap: 12px;
}

body.home-page .social-empty-feed {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
}

body.messages-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.08), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
}

body.messages-page .messages-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(7, 7, 13, 0.90);
    backdrop-filter: blur(16px);
}

body.messages-page .messages-topbar__inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    box-sizing: border-box;
}

body.messages-page .messages-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
}

body.messages-page .messages-topbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

body.messages-page .messages-topbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-topbar__icon:hover,
body.messages-page .messages-topbar__icon:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

body.messages-page .messages-topbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-main {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

body.messages-page .messages-toolbar,
body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    background: rgba(15, 17, 31, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(14px);
}

body.messages-page .messages-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
}

body.messages-page .messages-toolbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

body.messages-page .messages-toolbar__title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

body.messages-page .messages-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.messages-page .messages-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-toolbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-tabs,
body.messages-page .messages-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

body.messages-page .messages-tabs::-webkit-scrollbar,
body.messages-page .messages-filters::-webkit-scrollbar {
    display: none;
}

body.messages-page .messages-tab,
body.messages-page .messages-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

body.messages-page .messages-tab.is-active,
body.messages-page .messages-chip.is-active {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #f8fafc;
}

body.messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    border-radius: 24px;
    overflow: hidden;
    min-width: 0;
}

body.messages-page .messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

body.messages-page .messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.messages-page .messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.2;
}

body.messages-page .messages-sidebar__count {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.20);
    color: #f8fafc;
    font-weight: 800;
}

body.messages-page .messages-sidebar__list {
    display: grid;
    gap: 10px;
    max-height: min(74vh, 780px);
    overflow: auto;
    padding-right: 4px;
}

body.messages-page .messages-sidebar__empty {
    display: grid;
    gap: 6px;
    padding: 18px 6px;
    color: #cbd5e1;
}

body.messages-page .messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

body.messages-page .messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

body.messages-page .messages-conversation__avatar,
body.messages-page .messages-thread__avatar,
body.messages-page .message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

body.messages-page .messages-conversation__avatar.has-image,
body.messages-page .messages-thread__avatar.has-image,
body.messages-page .message-row__avatar.has-image {
    color: transparent;
}

body.messages-page .messages-conversation__avatar__dot,
body.messages-page .messages-thread__avatar__dot,
body.messages-page .message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__avatar__official,
body.messages-page .messages-thread__avatar__official,
body.messages-page .message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body.messages-page .messages-conversation__title-line,
body.messages-page .messages-thread__title-line,
body.messages-page .message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.messages-page .messages-conversation__title-line strong,
body.messages-page .messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

body.messages-page .messages-conversation__snippet,
body.messages-page .messages-conversation__location,
body.messages-page .messages-conversation__time,
body.messages-page .messages-thread__status,
body.messages-page .messages-thread__location,
body.messages-page .message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

body.messages-page .messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.messages-page .messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

body.messages-page .messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.messages-page .messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
}

body.messages-page .messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

body.messages-page .messages-thread__mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 0;
}

body.messages-page .messages-thread__back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-thread__mobiletitle {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.messages-page .messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.messages-page .messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.messages-page .messages-thread__status {
    color: #cbd5e1;
}

body.messages-page .messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    align-content: start;
}

body.messages-page .messages-thread__empty-inline,
body.messages-page .messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

body.messages-page .messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

body.messages-page .messages-empty p,
body.messages-page .messages-thread__empty-inline p {
    margin: 0;
    color: #a5adbd;
}

body.messages-page .messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
}

body.messages-page .message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

body.messages-page .message-row.is-self {
    justify-content: flex-end;
}

body.messages-page .message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

body.messages-page .message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

body.messages-page .message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

body.messages-page .message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

body.messages-page .messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

body.messages-page .messages-compose textarea::placeholder {
    color: #8e97aa;
}

body.messages-page .messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

body.messages-page .messages-compose .btn {
    min-height: 46px;
    padding-inline: 18px;
}

body.messages-page .messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

body.messages-page .messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    body.messages-page .messages-main {
        padding-top: 10px;
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.messages-page .messages-layout {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-layout:not(.messages-layout--chat-open) .messages-thread-panel {
        display: none;
    }

    body.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar {
        display: none;
    }

    body.messages-page .messages-thread-panel {
        min-height: calc(100vh - 220px);
    }

    body.messages-page .messages-thread__mobilebar {
        display: flex;
    }

    body.messages-page .messages-thread__head,
    body.messages-page .messages-thread__messages,
    body.messages-page .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 720px) {
    body.messages-page .messages-main {
        padding-top: 8px;
    }

    body.messages-page .messages-toolbar {
        border-radius: 20px;
        padding: 12px 14px;
    }

    body.messages-page .messages-tabs,
    body.messages-page .messages-filters {
        gap: 6px;
    }

    body.messages-page .messages-tab,
    body.messages-page .messages-chip {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    body.messages-page .messages-sidebar,
    body.messages-page .messages-thread-panel {
        border-radius: 20px;
    }

    body.messages-page .messages-conversation {
        padding: 11px;
        gap: 10px;
    }

    body.messages-page .message-bubble {
        max-width: 100%;
    }

    body.messages-page .messages-compose {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-compose .btn {
        width: 100%;
    }
}

body.messages-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.08), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
}

body.messages-page .messages-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(7, 7, 13, 0.90);
    backdrop-filter: blur(16px);
}

body.messages-page .messages-topbar__inner {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    box-sizing: border-box;
}

body.messages-page .messages-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    letter-spacing: -0.03em;
}

body.messages-page .messages-topbar__actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

body.messages-page .messages-topbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-topbar__icon:hover,
body.messages-page .messages-topbar__icon:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.34);
    background: rgba(255, 255, 255, 0.08);
}

body.messages-page .messages-topbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-main {
    display: grid;
    gap: 12px;
    padding-top: 12px;
    padding-bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
}

body.messages-page .messages-toolbar,
body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    background: rgba(15, 17, 31, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.18);
    backdrop-filter: blur(14px);
}

body.messages-page .messages-toolbar {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 24px;
}

body.messages-page .messages-toolbar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
}

body.messages-page .messages-toolbar__title h1 {
    margin: 0;
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

body.messages-page .messages-toolbar__actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

body.messages-page .messages-toolbar__icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-toolbar__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.messages-page .messages-tabs,
body.messages-page .messages-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}

body.messages-page .messages-tabs::-webkit-scrollbar,
body.messages-page .messages-filters::-webkit-scrollbar {
    display: none;
}

body.messages-page .messages-tab,
body.messages-page .messages-chip {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #cbd5e1;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
}

body.messages-page .messages-tab.is-active,
body.messages-page .messages-chip.is-active {
    border-color: rgba(244, 114, 182, 0.35);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #f8fafc;
}

body.messages-page .messages-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
}

body.messages-page .messages-sidebar,
body.messages-page .messages-thread-panel {
    border-radius: 24px;
    overflow: hidden;
    min-width: 0;
}

body.messages-page .messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
}

body.messages-page .messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.messages-page .messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.05rem;
    line-height: 1.2;
}

body.messages-page .messages-sidebar__count {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.20);
    color: #f8fafc;
    font-weight: 800;
}

body.messages-page .messages-sidebar__list {
    display: grid;
    gap: 10px;
    max-height: min(74vh, 780px);
    overflow: auto;
    padding-right: 4px;
}

body.messages-page .messages-sidebar__empty {
    display: grid;
    gap: 6px;
    padding: 18px 6px;
    color: #cbd5e1;
}

body.messages-page .messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

body.messages-page .messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

body.messages-page .messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

body.messages-page .messages-conversation__avatar,
body.messages-page .messages-thread__avatar,
body.messages-page .message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

body.messages-page .messages-conversation__avatar.has-image,
body.messages-page .messages-thread__avatar.has-image,
body.messages-page .message-row__avatar.has-image {
    color: transparent;
}

body.messages-page .messages-conversation__avatar__dot,
body.messages-page .messages-thread__avatar__dot,
body.messages-page .message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__avatar__official,
body.messages-page .messages-thread__avatar__official,
body.messages-page .message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

body.messages-page .messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

body.messages-page .messages-conversation__title-line,
body.messages-page .messages-thread__title-line,
body.messages-page .message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

body.messages-page .messages-conversation__title-line strong,
body.messages-page .messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

body.messages-page .messages-conversation__snippet,
body.messages-page .messages-conversation__location,
body.messages-page .messages-conversation__time,
body.messages-page .messages-thread__status,
body.messages-page .messages-thread__location,
body.messages-page .message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

body.messages-page .messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.messages-page .messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

body.messages-page .messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

body.messages-page .messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
}

body.messages-page .messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

body.messages-page .messages-thread__mobilebar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px 0;
}

body.messages-page .messages-thread__back {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.messages-page .messages-thread__mobiletitle {
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.messages-page .messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body.messages-page .messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

body.messages-page .messages-thread__status {
    color: #cbd5e1;
}

body.messages-page .messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 16px 18px;
    display: grid;
    gap: 12px;
    align-content: start;
}

body.messages-page .messages-thread__empty-inline,
body.messages-page .messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

body.messages-page .messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

body.messages-page .messages-empty p,
body.messages-page .messages-thread__empty-inline p {
    margin: 0;
    color: #a5adbd;
}

body.messages-page .messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
}

body.messages-page .message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

body.messages-page .message-row.is-self {
    justify-content: flex-end;
}

body.messages-page .message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

body.messages-page .message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

body.messages-page .message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

body.messages-page .message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

body.messages-page .messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 14px 18px 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

body.messages-page .messages-compose textarea {
    width: 100%;
    min-height: 46px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

body.messages-page .messages-compose textarea::placeholder {
    color: #8e97aa;
}

body.messages-page .messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

body.messages-page .messages-compose .btn {
    min-height: 46px;
    padding-inline: 18px;
}

body.messages-page .messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

body.messages-page .messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    body.messages-page .messages-main {
        padding-top: 10px;
        padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.messages-page .messages-layout {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-layout:not(.messages-layout--chat-open) .messages-thread-panel {
        display: none;
    }

    body.messages-page .messages-layout.messages-layout--chat-open .messages-sidebar {
        display: none;
    }

    body.messages-page .messages-thread-panel {
        min-height: calc(100vh - 220px);
    }

    body.messages-page .messages-thread__mobilebar {
        display: flex;
    }

    body.messages-page .messages-thread__head,
    body.messages-page .messages-thread__messages,
    body.messages-page .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }
}

@media (max-width: 720px) {
    body.messages-page .messages-main {
        padding-top: 8px;
    }

    body.messages-page .messages-toolbar {
        border-radius: 20px;
        padding: 12px 14px;
    }

    body.messages-page .messages-tabs,
    body.messages-page .messages-filters {
        gap: 6px;
    }

    body.messages-page .messages-tab,
    body.messages-page .messages-chip {
        min-height: 34px;
        padding-inline: 12px;
        font-size: 0.84rem;
    }

    body.messages-page .messages-sidebar,
    body.messages-page .messages-thread-panel {
        border-radius: 20px;
    }

    body.messages-page .messages-conversation {
        padding: 11px;
        gap: 10px;
    }

    body.messages-page .message-bubble {
        max-width: 100%;
    }

    body.messages-page .messages-compose {
        grid-template-columns: 1fr;
    }

    body.messages-page .messages-compose .btn {
        width: 100%;
    }
}

body.home-page .home-feed-note {
    margin: 8px 0 0;
    padding: 8px 2px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

body.home-page .home-feed-note--favorites {
    color: rgba(255, 255, 255, 0.56);
}

body.home-page .home-feed-note {
    margin: 8px 0 0;
    padding: 8px 2px 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}

body.home-page .home-feed-note--favorites {
    color: rgba(255, 255, 255, 0.56);
}

body.home-page .social-card {
    padding: 12px;
}

body.home-page .social-card__media {
    min-height: 0;
}

body.home-page .social-card__media--single {
    width: 100%;
    height: clamp(220px, 34vw, 300px);
    min-height: 220px;
    border-radius: 18px;
    overflow: hidden;
    background: #04040b;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-page .social-card__media--single img,
body.home-page .social-card__media--single video {
    width: 100%;
    height: 100%;
    display: block;
    max-width: 100%;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-card__media--single.is-video::after {
    display: none;
}

body.home-page .social-card__media--single.is-video {
    padding: 0;
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
    height: auto;
    min-height: 0;
}

body.home-page .social-card__media--single.is-video > .social-video-player {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    height: min(58vh, 560px);
    min-height: 320px;
    max-height: min(58vh, 560px);
}

body.home-page .social-video-player {
    position: relative;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: min(58vh, 560px);
    min-height: 320px;
    max-height: min(58vh, 560px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    border-radius: 18px;
    box-sizing: border-box;
    margin-inline: auto;
    aspect-ratio: var(--video-aspect, 16 / 9);
    isolation: isolate;
    cursor: pointer;
    touch-action: manipulation;
}

body.home-page .social-video-player.is-portrait {
    width: 100%;
    max-width: 100%;
    height: min(70vh, 700px);
    min-height: 360px;
    max-height: min(70vh, 700px);
}

body.home-page .social-video-player__media {
    position: absolute;
    inset: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-video-player__play {
    position: absolute;
    inset: 0;
    z-index: 6;
    display: grid;
    place-items: center;
    border: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.24));
    color: #fff;
    cursor: pointer;
    pointer-events: auto;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
    opacity: 1;
}

body.home-page .social-video-player__play span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 4px solid rgba(255, 255, 255, 0.94);
    background: rgba(0, 0, 0, 0.36);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.40);
    font-size: 2.1rem;
    line-height: 1;
    padding-left: 4px;
    transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

body.home-page .social-video-player__media {
    position: relative;
    z-index: 1;
    cursor: pointer;
}

body.home-page .social-video-player__play.is-visible {
    opacity: 1;
}

body.home-page .social-video-player__play.is-paused span {
    padding-left: 0;
}

body.home-page .social-video-player__play.is-paused span,
body.home-page .social-video-player__play.is-playing-flash span {
    font-size: 1.95rem;
}

body.home-page .social-video-player__play.is-hidden {
    opacity: 0;
    transform: scale(0.92);
    pointer-events: none;
}

body.home-page .social-video-player__play.is-resting span {
    font-size: 2.15rem;
}

body.home-page .social-video-player__loading {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.10), rgba(0, 0, 0, 0.24));
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
}

body.home-page .social-video-player.is-loading .social-video-player__loading {
    opacity: 1;
}

body.home-page .social-video-player__loading span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.20);
    border-top-color: rgba(255, 255, 255, 0.94);
    animation: sfVideoSpin 0.9s linear infinite;
}

@keyframes sfVideoSpin {
    to {
        transform: rotate(360deg);
    }
}

body.home-page .social-video-player__error {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 4;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(88, 18, 30, 0.88);
    border: 1px solid rgba(255, 71, 122, 0.22);
    color: #ffd7df;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
}

body.home-page .social-card__carousel {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #04040b;
}

body.home-page .social-card__carousel-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    touch-action: pan-y;
    cursor: grab;
}

body.home-page .social-card__carousel-track::-webkit-scrollbar {
    display: none;
}

body.home-page .social-card__carousel-track.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

body.home-page .social-card__carousel-slide {
    flex: 0 0 100%;
    min-width: 100%;
    height: clamp(220px, 34vw, 300px);
    min-height: 220px;
    scroll-snap-align: start;
    margin: 0;
    background: #04040b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

body.home-page .social-card__carousel-slide img,
body.home-page .social-card__carousel-slide video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center center;
    background: #000;
}

body.home-page .social-card__media--single video,
body.home-page .social-card__carousel-slide video {
    border-radius: inherit;
}

body.home-page .social-card__media--single video::-webkit-media-controls-panel,
body.home-page .social-card__carousel-slide video::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.6);
}

body.home-page .social-card__carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(7, 7, 18, 0.50);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

body.home-page .social-card__carousel-arrow:hover {
    background: rgba(7, 7, 18, 0.72);
    transform: translateY(-50%) scale(1.03);
}

body.home-page .social-card__carousel-arrow:disabled {
    opacity: 0.28;
    cursor: default;
}

body.home-page .social-card__carousel-arrow--prev {
    left: 12px;
}

body.home-page .social-card__carousel-arrow--next {
    right: 12px;
}

body.home-page .social-card__carousel-arrow span {
    font-size: 1.9rem;
    line-height: 1;
    margin-top: -2px;
}

body.home-page .social-card__carousel-counter {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 3;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(7, 7, 18, 0.64);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    backdrop-filter: blur(10px);
}

body.home-page .social-card__toolbar {
    gap: 8px;
}

@media (max-width: 760px) {
    body.home-page .social-home {
        width: min(100vw - 20px, 1120px);
        margin-top: 12px;
    }

    body.home-page .social-composer__bottom {
        flex-direction: column;
        align-items: stretch;
    }

    body.home-page .social-composer__top {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.home-page .social-upload,
    body.home-page .social-composer__bottom .btn {
        width: 100%;
    }

    body.home-page .social-comment-form {
        grid-template-columns: minmax(0, 1fr) 96px;
    }

    body.home-page .social-card__media {
        min-height: 0;
    }

    body.home-page .social-card__media--single,
    body.home-page .social-card__carousel-slide {
        height: clamp(200px, 58vw, 260px);
        min-height: 200px;
    }

    body.home-page .social-card__media--single.is-video > .social-video-player {
        height: min(45vh, 420px);
        min-height: 220px;
        max-height: min(45vh, 420px);
    }

    body.home-page .social-video-player {
        height: min(45vh, 420px);
        min-height: 220px;
        max-height: min(45vh, 420px);
    }

    body.home-page .social-video-player.is-portrait {
        height: min(65vh, 560px);
        min-height: 260px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-card__carousel-arrow {
        width: 38px;
        height: 38px;
    }

    body.home-page .social-card__carousel-arrow span {
        font-size: 1.7rem;
    }
}

body.modal-open {
    overflow: hidden;
}

body.search-page .app-main-minimal {
    min-height: 0;
    padding-top: 12px;
    padding-bottom: 180px !important;
}

body.search-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.09), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.08), transparent 16%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.search-page .search-main {
    display: grid;
    gap: 12px;
}

body.search-page .search-topbar {
    position: sticky;
    top: 0;
    z-index: 95;
    background: rgba(9, 10, 19, 0.96);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.16);
    backdrop-filter: blur(14px);
}

body.search-page .search-topbar__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
}

body.search-page .search-topbar__back {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.18);
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    text-decoration: none;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

body.search-page .search-topbar__title {
    flex: 1 1 auto;
    min-width: 0;
}

body.search-page .search-topbar__title strong {
    display: block;
    color: #f8fafc;
    font-size: clamp(1.02rem, 1.8vw, 1.24rem);
    line-height: 1.1;
    font-weight: 800;
}

body.search-page .search-topbar__filter {
    min-height: 40px;
    padding-inline: 14px;
    flex: 0 0 auto;
}

body.search-page .search-shell {
    display: grid;
    gap: 12px;
}

body.search-page .search-toolbar,
body.search-page .search-filters,
body.search-page .search-tip,
body.search-page .search-result,
body.search-page .search-empty {
    background: rgba(11, 14, 26, 0.90);
    border: 1px solid rgba(148, 163, 184, 0.08);
    box-shadow: 0 12px 28px rgba(2, 6, 23, 0.14);
    backdrop-filter: blur(12px);
}

body.search-page .search-toolbar {
    padding: 12px;
    border-radius: 18px;
    align-items: center;
}

body.search-page .search-toolbar__form {
    grid-template-columns: minmax(0, 1.6fr) 180px auto;
    gap: 10px;
    align-items: end;
}

body.search-page .search-toolbar__query--desktop {
    display: block;
}

body.search-page .search-toolbar__submit {
    min-height: 44px;
}

body.search-page .search-filters__query--mobile {
    display: grid;
}

body.search-page .search-tip {
    border-radius: 18px;
}

body.search-page .search-results {
    gap: 12px;
}

body.search-page .search-result {
    padding: 12px;
    border-radius: 18px;
    gap: 10px;
}

body.search-page .search-result__main {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
}

body.search-page .search-result__avatar {
    width: 62px;
    height: 62px;
}

body.search-page .search-result__arrow {
    display: none;
}

body.search-page .search-result__content {
    gap: 10px;
}

body.search-page .search-result__gallery {
    gap: 8px;
}

body.search-page .search-result__photo,
body.search-page .search-result__photo img {
    min-height: 112px;
}

body.search-page .search-result__footer {
    align-items: flex-end;
}

body.search-page .search-result__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.search-page .search-action {
    border: 1px solid rgba(196, 132, 252, 0.16);
    background: rgba(8, 9, 20, 0.72);
    color: #fff;
    font-weight: 800;
}

body.search-page .search-action--add {
    min-width: 118px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #f72585);
}

body.search-page .search-action--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
}

body.search-page .search-empty {
    padding: 16px;
}

@media (max-width: 760px) {
    body.search-page .app-main-minimal {
        padding-top: 10px;
        padding-bottom: 184px !important;
    }

    body.search-page .search-topbar__inner {
        min-height: 56px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    body.search-page .search-topbar__filter {
        min-height: 38px;
    }

    body.search-page .search-toolbar__query--desktop,
    body.search-page .search-toolbar__submit {
        display: none;
    }

    body.search-page .search-toolbar__form {
        grid-template-columns: minmax(0, 1fr);
    }

    body.search-page .search-toolbar__sort span {
        display: none;
    }

    body.search-page .search-toolbar__view {
        justify-self: end;
    }

    body.search-page .search-result__main {
        grid-template-columns: auto minmax(0, 1fr);
    }

    body.search-page .search-result__avatar {
        width: 56px;
        height: 56px;
    }

    body.search-page .search-result__photo,
    body.search-page .search-result__photo img {
        min-height: 96px;
    }

    body.search-page .search-results.is-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 761px) {
    body.search-page .search-filters__query--mobile {
        display: none;
    }
}

.post-modal {
    position: fixed;
    inset: 0;
    z-index: 1300;
    display: grid;
    place-items: center;
    padding: 18px;
}

.post-modal[hidden] {
    display: none !important;
}

.post-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 3, 10, 0.82);
    backdrop-filter: blur(14px);
}

.post-modal__panel {
    position: relative;
    width: min(1180px, 100%);
    max-height: calc(100vh - 36px);
    overflow: hidden;
    border-radius: 28px;
    background: rgba(8, 8, 20, 0.98);
    border: 1px solid rgba(155, 92, 255, 0.18);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.post-modal__head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 10px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(155, 92, 255, 0.14);
}

.post-modal__head h2 {
    margin: 0;
    text-align: center;
    font-size: 1.2rem;
}

.post-modal__icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
}

.post-modal__form,
.post-modal__grid {
    min-height: 0;
}

.post-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
}

.post-modal__media {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
    overflow: auto;
    border-right: 1px solid rgba(155, 92, 255, 0.12);
}

.post-modal__dropzone {
    min-height: 260px;
    border-radius: 24px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
    background:
        radial-gradient(circle at top, rgba(255, 77, 141, 0.10), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(139, 92, 246, 0.08));
    display: grid;
    place-items: center;
    gap: 10px;
    text-align: center;
    padding: 24px;
}

.post-modal__dropzone-icon {
    width: 86px;
    height: 86px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 77, 141, 0.26);
    background: rgba(255, 255, 255, 0.04);
    color: var(--accent-2);
    font-size: 3rem;
    font-weight: 300;
}

.post-modal__dropzone strong {
    font-size: 1.05rem;
}

.post-modal__dropzone p {
    margin: 0;
    max-width: 42ch;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.6;
}

.post-modal__preview {
    display: grid;
    gap: 12px;
}

.post-modal__preview-empty {
    min-height: 120px;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    border: 1px solid rgba(155, 92, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__preview-item {
    position: relative;
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(155, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__preview-item img,
.post-modal__preview-item video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 16px;
    background: #03030a;
}

.post-modal__preview-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.post-modal__preview-meta strong {
    color: #fff;
}

.post-modal__preview-controls {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-modal__preview-controls button {
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.post-modal__side {
    min-width: 0;
    padding: 18px;
    display: grid;
    gap: 16px;
    align-content: start;
    overflow: auto;
}

.post-modal__field {
    display: grid;
    gap: 10px;
}

.post-modal__field > span,
.post-modal__visibility legend {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 800;
}

.post-modal__field textarea {
    min-height: 170px;
    resize: vertical;
}

.post-modal__field small {
    text-align: right;
    color: rgba(255, 255, 255, 0.58);
}

.post-modal__visibility {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(155, 92, 255, 0.14);
    background: rgba(255, 255, 255, 0.03);
}

.post-modal__visibility label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 700;
}

.post-modal__terms {
    margin: 0;
    color: rgba(255, 255, 255, 0.70);
    line-height: 1.5;
    font-size: 0.92rem;
}

.post-modal__terms a {
    color: #f9a8d4;
    font-weight: 700;
}

.post-modal__status {
    margin: 0;
    min-height: 20px;
    color: #fca5a5;
    font-size: 0.92rem;
    line-height: 1.4;
}

.post-modal__status.is-error {
    color: #fca5a5;
}

.social-card__gallery {
    position: relative;
    display: grid;
    gap: 10px;
}

.social-card__gallery--1 {
    grid-template-columns: 1fr;
}

.social-card__gallery--1 .social-card__media-tile {
    min-height: 420px;
}

.social-card__gallery--2,
.social-card__gallery--3,
.social-card__gallery--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.social-card__media-tile {
    min-height: 220px;
    overflow: hidden;
    border-radius: 18px;
    background: #04040b;
    border: 1px solid rgba(155, 92, 255, 0.10);
}

.social-card__media-tile img,
.social-card__media-tile video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.social-card__media-more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(6, 6, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
    .post-modal {
        padding: 0;
        align-items: stretch;
    }

    .post-modal__panel {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }

    .post-modal__grid {
        grid-template-columns: 1fr;
    }

    .post-modal__media {
        border-right: 0;
        border-bottom: 1px solid rgba(155, 92, 255, 0.12);
    }

    .post-modal__preview-item img,
    .post-modal__preview-item video {
        height: 200px;
    }
}

@media (max-width: 540px) {
    .post-modal__head {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        padding: 14px;
    }

    .post-modal__icon-btn {
        width: 40px;
        height: 40px;
    }

    .post-modal__media,
    .post-modal__side {
        padding: 14px;
    }

    .post-modal__dropzone {
        min-height: 220px;
        padding: 18px;
    }

    .social-card__gallery--1 .social-card__media-tile {
        min-height: 300px;
    }

    .social-card__gallery--2,
    .social-card__gallery--3,
    .social-card__gallery--4 {
        grid-template-columns: 1fr;
    }
}

.home-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    pointer-events: none;
}

.home-bottom-nav__shell {
    width: min(760px, calc(100% - 24px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(7, 7, 15, 0.92);
    border: 1px solid rgba(155, 92, 255, 0.20);
    box-shadow:
        0 -14px 36px rgba(0, 0, 0, 0.32),
        0 12px 28px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(20px);
    pointer-events: auto;
}

.home-bottom-nav__item {
    min-height: 72px;
    padding: 10px 8px 8px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-bottom-nav__item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

.home-bottom-nav__item.is-active {
    color: #fff;
    background: linear-gradient(180deg, rgba(124, 32, 255, 0.18), rgba(255, 37, 58, 0.12));
    box-shadow: inset 0 0 0 1px rgba(196, 132, 252, 0.18);
}

.home-bottom-nav__icon {
    width: 34px;
    height: 34px;
    position: relative;
    display: grid;
    place-items: center;
    color: currentColor;
}

.home-bottom-nav__icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.home-bottom-nav__label {
    line-height: 1;
}

.home-bottom-nav__badge {
    position: absolute;
    top: -3px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.67rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-bottom: 146px !important;
    }

    .home-bottom-nav {
        padding-inline: 0;
    }

    .home-bottom-nav__shell {
        width: 100%;
        max-width: 100%;
        border-radius: 22px 22px 0 0;
        padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
        gap: 4px;
    }

    .home-bottom-nav__item {
        min-height: 68px;
        padding-inline: 4px;
    }
}

body.is-authenticated .home-main,
body.is-authenticated .app-main,
body.is-authenticated .app-main-minimal {
    padding-bottom: 132px !important;
}

@media (max-width: 760px) {
    body.is-authenticated .home-main,
    body.is-authenticated .app-main,
    body.is-authenticated .app-main-minimal {
        padding-bottom: 146px !important;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(139, 92, 246, 0.08), transparent 18%),
        linear-gradient(180deg, #fbfcff 0%, #f5f2fb 40%, #eef1ff 100%);
    color: #111827;
}

body.discover-page .app-main-minimal {
    min-height: 0;
    padding-top: 14px;
}

body.discover-page .topbar,
body.discover-page .topbar-minimal {
    background: rgba(7, 7, 13, 0.9) !important;
    border-bottom: 1px solid rgba(155, 92, 255, 0.14);
}

.discover-shell {
    display: grid;
    gap: 14px;
}

.discover-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 2px;
}

.discover-head__copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

.discover-head__eyebrow,
.discover-section__eyebrow,
.discover-banner__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 32, 255, 0.10);
    border: 1px solid rgba(124, 32, 255, 0.16);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.discover-head h1 {
    margin: 0;
    font-size: clamp(1.7rem, 2.5vw, 2.3rem);
    line-height: 1.05;
    color: #111827;
    letter-spacing: -0.04em;
}

.discover-head p {
    margin: 0;
    max-width: 64ch;
    color: #4b5563;
    line-height: 1.7;
}

.discover-filter-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(124, 32, 255, 0.22);
    background: rgba(255, 255, 255, 0.82);
    color: #4c1d95;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.08);
}

.discover-filters,
.discover-section,
.discover-banner,
.discover-empty,
.discover-mini.card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(124, 58, 237, 0.08);
    box-shadow: 0 16px 36px rgba(76, 29, 149, 0.07);
    backdrop-filter: blur(14px);
}

.discover-filters {
    padding: 16px;
}

.discover-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.discover-filter-form label {
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #4c1d95;
}

.discover-filter-form input,
.discover-filter-form select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    outline: none;
}

.discover-filter-check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-bottom: 4px;
}

.discover-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.discover-section,
.discover-banner {
    padding: 16px;
}

.discover-section__head,
.discover-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.discover-section__head h2,
.discover-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    color: #111827;
    letter-spacing: -0.03em;
}

.discover-section__link {
    color: #6d28d9;
    font-weight: 800;
}

.discover-online-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

.discover-online-strip::-webkit-scrollbar {
    height: 6px;
}

.discover-online-chip {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #111827;
}

.discover-online-chip strong,
.discover-online-chip small {
    width: 100%;
    text-align: center;
}

.discover-online-chip strong {
    font-size: 0.78rem;
    line-height: 1.1;
}

.discover-online-chip small {
    color: #6b7280;
    font-size: 0.72rem;
}

.discover-online-chip__ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 3px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 37, 58, 0.18));
    box-shadow: 0 12px 24px rgba(76, 29, 149, 0.08);
}

.discover-online-chip__ring.is-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(124, 58, 237, 0.22));
}

.discover-online-chip__avatar {
    width: 100%;
    height: 100%;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #fff;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    border: 2px solid rgba(255, 255, 255, 0.92);
}

.discover-online-chip__avatar--add {
    font-size: 2rem;
}

.discover-online-chip__badges {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: wrap;
}

.discover-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.06);
    color: #374151;
    font-size: 0.7rem;
    font-weight: 800;
}

.discover-chip.is-live {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.16);
    color: #0f766e;
}

.discover-chip.is-premium {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.16);
    color: #6d28d9;
}

.discover-chip.is-verified {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.16);
    color: #2563eb;
}

.discover-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(247, 241, 255, 0.92));
}

.discover-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

.discover-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.14);
    background: rgba(255, 255, 255, 0.84);
    color: #6d28d9;
    cursor: pointer;
}

.discover-banner__copy {
    display: grid;
    gap: 6px;
}

.discover-banner__copy strong {
    font-size: 1.08rem;
    color: #111827;
}

.discover-banner__copy p {
    margin: 0;
    color: #4b5563;
    line-height: 1.6;
}

.discover-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

.discover-tile {
    display: grid;
    gap: 8px;
}

.discover-tile.is-tall {
    grid-row: span 2;
}

.discover-tile.is-wide {
    grid-column: span 2;
}

.discover-tile__frame {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    border-radius: 22px;
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.10);
}

.discover-tile.is-tall .discover-tile__frame {
    min-height: 320px;
}

.discover-tile.is-wide .discover-tile__frame {
    min-height: 284px;
}

.discover-tile__media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #0b1020;
}

.discover-tile__placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(255, 77, 141, 0.18), transparent 38%), linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(76, 29, 149, 0.82));
}

.discover-tile__placeholder-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.discover-tile__overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
    color: #fff;
}

.discover-tile__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.discover-tile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.discover-tile__author strong {
    display: block;
    font-size: 0.92rem;
}

.discover-tile__author small {
    display: block;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.76rem;
}

.discover-tile__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.discover-tile__caption {
    margin: 0;
    color: #475569;
    line-height: 1.55;
    font-size: 0.92rem;
}

.discover-tile__count {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.discover-tile__actions {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

.discover-action {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.54);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.discover-action:hover {
    transform: translateY(-1px);
}

.discover-action.is-like:hover {
    background: rgba(255, 37, 58, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-action.is-favorite:hover {
    background: rgba(124, 58, 237, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-action.is-pass:hover {
    background: rgba(107, 114, 128, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

.discover-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.discover-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 20px;
}

.discover-mini__media {
    display: inline-flex;
}

.discover-mini__avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.18));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    font-size: 1.2rem;
    font-weight: 900;
}

.discover-mini__copy {
    display: grid;
    gap: 4px;
}

.discover-mini__copy strong {
    color: #111827;
}

.discover-mini__copy small {
    color: #6b7280;
}

.discover-mini__tag {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #6d28d9;
    font-size: 0.72rem;
    font-weight: 800;
}

.discover-mini__actions {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.discover-empty {
    padding: 18px;
}

.discover-empty strong {
    display: block;
    margin-bottom: 6px;
    color: #111827;
}

.discover-empty p {
    margin: 0;
    color: #4b5563;
}

@media (max-width: 1024px) {
    .discover-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .discover-mosaic,
    .discover-mini-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    body.discover-page .app-main-minimal {
        padding-top: 12px;
    }

    .discover-head {
        align-items: flex-start;
    }

    .discover-section,
    .discover-banner,
    .discover-filters {
        padding: 14px;
    }

    .discover-filter-form {
        grid-template-columns: 1fr;
    }

    .discover-banner {
        grid-template-columns: 1fr;
    }

    .discover-online-strip {
        grid-auto-columns: 90px;
    }

    .discover-tile.is-tall,
    .discover-tile.is-wide {
        grid-column: auto;
        grid-row: auto;
    }

    .discover-tile__frame,
    .discover-tile.is-tall .discover-tile__frame,
    .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    .discover-mini {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .discover-mini__actions {
        grid-column: 1 / -1;
    }
}

body.search-page .topbar,
body.search-page .topbar-minimal,
body.search-page .home-topbar,
body.search-page .home-topbar--compact,
body.profile-page .topbar,
body.profile-page .topbar-minimal {
    display: none;
}

body.search-page .app-main-minimal,
body.profile-page .app-main-minimal {
    padding-top: 12px;
}

body.search-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.12), transparent 20%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.profile-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 20%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

.search-shell,
.profile-shell {
    display: grid;
    gap: 12px;
}

.search-head,
.profile-head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.search-back,
.profile-back {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.20);
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
}

.search-head__copy,
.profile-head__copy {
    display: grid;
    gap: 4px;
}

.search-head__eyebrow,
.profile-head__eyebrow {
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.search-head h1,
.profile-head h1 {
    margin: 0;
    font-size: clamp(1.55rem, 2vw, 2.1rem);
    line-height: 1.05;
    color: #f8fafc;
}

.search-filter-button {
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(244, 114, 182, 0.22);
    background: linear-gradient(135deg, #f72585, #b5179e);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.search-toolbar,
.search-filters,
.search-tip,
.search-result,
.search-empty,
.profile-card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

.search-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px;
    flex-wrap: wrap;
}

.search-toolbar__form {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) 180px auto;
    gap: 10px;
    align-items: end;
    flex: 1 1 520px;
}

.search-toolbar__query input,
.search-toolbar__sort select,
.search-filters__form input,
.search-filters__form select {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.78);
    color: #f8fafc;
    outline: none;
}

.search-toolbar__sort span,
.search-filters__form label span {
    display: block;
    margin-bottom: 8px;
    color: #a5b4fc;
    font-size: 0.78rem;
    font-weight: 700;
}

.search-toolbar__view {
    display: inline-flex;
    gap: 8px;
}

.search-view-button {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.72);
    color: rgba(248, 250, 252, 0.72);
    text-decoration: none;
    font-size: 1rem;
}

.search-view-button.is-active {
    color: #fff;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.30), rgba(247, 37, 133, 0.34));
    border-color: rgba(244, 114, 182, 0.28);
}

.search-tip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 17, 31, 0.78);
}

.search-tip.is-dismissing {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.search-tip__copy {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-tip__icon {
    width: 32px;
    height: 32px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(244, 114, 182, 0.18);
    color: #ff6aa2;
    font-size: 1.1rem;
    flex: 0 0 auto;
}

.search-tip p {
    margin: 0;
    color: rgba(226, 232, 240, 0.92);
    line-height: 1.5;
}

.search-tip__close {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
}

.search-filters {
    padding: 14px;
}

.search-filters__form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

.search-filters__check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding-bottom: 4px;
    color: #e5e7eb;
    font-weight: 700;
}

.search-filters__check input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.search-filters__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.search-results {
    display: grid;
    gap: 14px;
}

.search-results.is-list {
    grid-template-columns: 1fr;
}

.search-results.is-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-result {
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 22px;
}

.search-result__main {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.search-result__avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

.search-result__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result__dot,
.profile-card__dot {
    position: absolute;
    left: 3px;
    bottom: 3px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 2px solid #0f1324;
    background: #22c55e;
}

.search-result__meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.search-result__title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-result__title-line strong,
.profile-card__title-line strong {
    font-size: 1rem;
    color: #f8fafc;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
}

.search-pill.is-verified {
    background: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

.search-pill.is-premium {
    background: rgba(124, 58, 237, 0.16);
    color: #d8b4fe;
}

.search-result__headline,
.search-result__location,
.profile-card__headline,
.profile-card__location {
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.88rem;
    line-height: 1.4;
}

.search-result__arrow {
    color: rgba(226, 232, 240, 0.42);
    font-size: 1.8rem;
    line-height: 1;
}

.search-result__content {
    display: grid;
    gap: 12px;
}

.search-result__bio {
    color: rgba(226, 232, 240, 0.86);
}

.search-result__bio summary {
    cursor: pointer;
    list-style: none;
    line-height: 1.6;
}

.search-result__bio summary::-webkit-details-marker {
    display: none;
}

.search-result__bio summary span {
    color: #f9a8d4;
    font-weight: 800;
}

.search-result__bio p {
    margin: 10px 0 0;
    color: rgba(226, 232, 240, 0.76);
    line-height: 1.6;
}

.search-result__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.search-result__photo {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 140px;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.78);
}

.search-result__photo img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    display: block;
}

.search-result__photo--empty {
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    font-size: 1.25rem;
}

.search-result__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.search-result__status {
    display: grid;
    gap: 2px;
}

.search-result__status strong {
    color: #f8fafc;
    font-size: 0.88rem;
}

.search-result__status small {
    color: rgba(226, 232, 240, 0.66);
    font-size: 0.78rem;
}

.search-result__actions {
    display: inline-flex;
    gap: 8px;
}

.search-action {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.16);
    background: rgba(8, 9, 20, 0.72);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.search-empty {
    padding: 18px;
    border-radius: 20px;
}

.search-empty strong {
    display: block;
    margin-bottom: 4px;
    color: #f8fafc;
}

.search-empty p {
    margin: 0;
    color: rgba(226, 232, 240, 0.74);
    line-height: 1.6;
}

.profile-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
}

.profile-card__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.profile-card__avatar {
    position: relative;
    width: 110px;
    height: 110px;
    border-radius: 28px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
}

.profile-card__avatar.has-image {
    background-color: #0b1020;
}

.profile-card__avatar span {
    position: relative;
    z-index: 1;
}

.profile-card__copy {
    display: grid;
    gap: 5px;
}

.profile-card__title-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-card__status {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.profile-card__status strong {
    color: #f8fafc;
}

.profile-card__status small {
    color: rgba(226, 232, 240, 0.64);
}

.profile-card__actions {
    display: flex;
    justify-content: flex-end;
}

.profile-card__bio {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.7;
}

.profile-card__gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.profile-card__photo {
    margin: 0;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(17, 24, 39, 0.82);
    min-height: 180px;
}

.profile-card__photo img {
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    display: block;
}

.profile-card__empty {
    grid-column: 1 / -1;
    padding: 20px;
    border-radius: 18px;
    background: rgba(8, 9, 20, 0.64);
    color: rgba(226, 232, 240, 0.76);
}

@media (max-width: 1024px) {
    .search-toolbar__form,
    .search-filters__form {
        grid-template-columns: 1fr 1fr;
    }

    .search-results.is-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .search-head,
    .profile-head {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .search-filter-button,
    .profile-head .btn {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .search-toolbar__form,
    .search-filters__form {
        grid-template-columns: 1fr;
    }

    .search-result__main,
    .profile-card__hero {
        grid-template-columns: 1fr;
    }

    .search-result__avatar,
    .profile-card__avatar {
        width: 86px;
        height: 86px;
    }

    .search-result__gallery,
    .profile-card__gallery {
        grid-template-columns: 1fr;
    }

    .search-result__photo,
    .search-result__photo img,
    .profile-card__photo,
    .profile-card__photo img {
        min-height: 140px;
    }
}

body.messages-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 18%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.12), transparent 18%),
        linear-gradient(180deg, #080812 0%, #0f1121 100%);
    color: #e5e7eb;
}

body.messages-page .topbar,
body.messages-page .topbar-minimal {
    display: none;
}

body.messages-page .app-main-minimal {
    min-height: 0;
    padding-top: 0;
    padding-bottom: 170px !important;
}

.messages-shell {
    display: grid;
    gap: 14px;
}

.messages-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.messages-hero__copy {
    display: grid;
    gap: 8px;
    max-width: 760px;
}

.messages-hero__eyebrow,
.messages-sidebar__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.messages-hero h1 {
    margin: 0;
    font-size: clamp(1.5rem, 2.3vw, 2.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #f8fafc;
}

.messages-hero p {
    margin: 0;
    color: #b6bccb;
    line-height: 1.7;
    max-width: 72ch;
}

.messages-layout {
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.messages-sidebar,
.messages-thread-panel {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
    backdrop-filter: blur(14px);
}

.messages-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    min-width: 0;
}

.messages-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.messages-sidebar__head h2 {
    margin: 4px 0 0;
    color: #f8fafc;
    font-size: 1.1rem;
    line-height: 1.2;
}

.messages-sidebar__count {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(124, 58, 237, 0.16);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #f8fafc;
    font-weight: 800;
}

.messages-sidebar__list {
    display: grid;
    gap: 10px;
    overflow: auto;
    max-height: min(74vh, 780px);
    padding-right: 2px;
}

.messages-sidebar__list::-webkit-scrollbar,
.messages-thread__messages::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.messages-sidebar__list::-webkit-scrollbar-thumb,
.messages-thread__messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

.messages-conversation {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    background: rgba(255, 255, 255, 0.03);
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.messages-conversation:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(196, 132, 252, 0.24);
}

.messages-conversation.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.10));
    border-color: rgba(196, 132, 252, 0.28);
}

.messages-conversation__avatar,
.messages-thread__avatar,
.message-row__avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(255, 77, 141, 0.55), rgba(124, 58, 237, 0.55));
    color: #fff;
    font-weight: 900;
    background-size: cover;
    background-position: center;
    position: relative;
    flex: none;
}

.messages-conversation__avatar.has-image,
.messages-thread__avatar.has-image,
.message-row__avatar.has-image {
    color: transparent;
}

.messages-conversation__avatar__dot,
.messages-thread__avatar__dot,
.message-row__avatar__dot {
    position: absolute;
    left: -1px;
    bottom: -1px;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: #22c55e;
    border: 2px solid #080812;
}

.messages-conversation__avatar__official,
.messages-thread__avatar__official,
.message-row__avatar__official {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    background: linear-gradient(135deg, #8b5cf6, #ff4d8d);
    color: #fff;
    border: 2px solid #080812;
}

.messages-conversation__body {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.messages-conversation__title-line,
.messages-thread__title-line,
.message-bubble__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.messages-conversation__title-line strong,
.messages-thread__title-line h2 {
    color: #f8fafc;
    font-size: 0.98rem;
    line-height: 1.1;
    margin: 0;
}

.messages-conversation__snippet,
.messages-conversation__location,
.messages-conversation__time,
.messages-thread__status,
.messages-thread__location,
.message-bubble__time {
    color: #a5adbd;
    font-size: 0.86rem;
    line-height: 1.4;
}

.messages-conversation__snippet {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.messages-conversation__meta {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.78rem;
}

.messages-conversation__unread {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
}

.messages-thread-panel {
    display: flex;
    min-width: 0;
    min-height: min(74vh, 780px);
    overflow: hidden;
}

.messages-thread {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
}

.messages-thread__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}

.messages-thread__profile {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.messages-thread__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.messages-thread__status {
    color: #cbd5e1;
}

.messages-thread__messages {
    flex: 1;
    overflow: auto;
    padding: 18px 20px;
    display: grid;
    gap: 12px;
    align-content: start;
}

.messages-thread__empty-inline,
.messages-empty {
    display: grid;
    place-items: center;
    text-align: center;
    gap: 8px;
    padding: 28px 18px;
    color: #cbd5e1;
}

.messages-thread__empty-inline strong,
.messages-empty h2 {
    color: #f8fafc;
    font-size: 1.1rem;
    margin: 0;
}

.messages-thread__empty-inline p,
.messages-empty p {
    margin: 0;
    color: #a5adbd;
}

.messages-empty__icon {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(255, 77, 141, 0.18));
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.message-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.message-row.is-self {
    justify-content: flex-end;
}

.message-bubble {
    max-width: min(78%, 640px);
    border-radius: 20px;
    padding: 12px 14px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

.message-bubble.is-self {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.12));
    border-color: rgba(196, 132, 252, 0.18);
}

.message-bubble__body {
    line-height: 1.65;
    white-space: pre-wrap;
    word-break: break-word;
}

.message-bubble__time {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: #94a3b8;
}

.messages-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 16px 20px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
}

.messages-compose textarea {
    width: 100%;
    min-height: 48px;
    max-height: 180px;
    resize: none;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #f8fafc;
    outline: none;
    line-height: 1.6;
}

.messages-compose textarea::placeholder {
    color: #8e97aa;
}

.messages-compose textarea:focus {
    border-color: rgba(196, 132, 252, 0.36);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.12);
}

.messages-compose .btn {
    min-height: 48px;
    padding-inline: 18px;
}

.messages-compose__error {
    grid-column: 1 / -1;
    margin: -2px 0 0;
    color: #fda4af;
    font-size: 0.86rem;
}

.messages-thread.is-loading {
    opacity: 0.72;
    pointer-events: none;
}

@media (max-width: 980px) {
    .messages-layout {
        grid-template-columns: 1fr;
    }

    .messages-sidebar__list {
        max-height: 320px;
    }
}

@media (max-width: 720px) {
    body.messages-page .app-main-minimal {
        padding-top: 0;
        padding-bottom: 184px !important;
    }

    .messages-thread-panel {
        min-height: 62vh;
    }

    .messages-thread__head,
    .messages-thread__messages,
    .messages-compose {
        padding-left: 14px;
        padding-right: 14px;
    }

    .messages-compose {
        grid-template-columns: 1fr;
    }

    .messages-compose .btn {
        width: 100%;
    }

    .message-bubble {
        max-width: 100%;
    }
}
body.home-page .home-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.home-page .home-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.home-page .home-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.home-page .home-topbar-inner--compact .brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.home-page .home-topbar-inner--compact .brand-wordmark strong {
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

body.home-page .home-topbar-inner--compact .brand-wordmark small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.home-page .home-toolbar--compact {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.home-page .home-icon-btn,
body.home-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.home-page .home-icon-btn:hover,
body.home-page .home-icon-btn:focus-visible,
body.home-page .home-avatar-btn:hover,
body.home-page .home-avatar-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

body.home-page .home-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.home-page .home-icon-btn--compose {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
}

body.home-page .home-icon-btn--compose:hover,
body.home-page .home-icon-btn--compose:focus-visible {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(236, 72, 153, 0.30));
}

body.home-page .home-icon-btn--notifications strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(7, 7, 13, 0.95);
}

body.home-page .home-avatar-btn__circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.9), rgba(236, 72, 153, 0.9));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.home-page .social-stories-panel {
    padding: 12px;
    background: rgba(11, 11, 22, 0.95);
    border-color: rgba(155, 92, 255, 0.14);
    box-shadow: 0 8px 20px rgba(16, 12, 30, 0.16);
}

body.home-page .social-stories-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

body.home-page .social-stories-panel__head > div {
    display: grid;
    gap: 2px;
}

body.home-page .social-panel__eyebrow {
    display: inline-flex;
    margin-bottom: 3px;
    color: rgba(216, 180, 254, 0.9);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

body.home-page .social-panel__head h2 {
    margin: 0;
    font-size: 1.02rem;
}

body.home-page .social-panel__link {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.9rem;
    font-weight: 700;
}

body.home-page .story-strip--compact {
    grid-auto-columns: 78px;
    gap: 10px;
}

body.home-page .story-chip {
    padding: 4px 2px 0;
    position: relative;
}

body.home-page .story-chip strong {
    font-size: 0.74rem;
}

body.home-page .story-chip small {
    font-size: 0.68rem;
}

body.home-page .story-chip__ring {
    width: 70px;
    height: 70px;
    position: relative;
}

body.home-page .story-chip__ring--add {
    background: linear-gradient(135deg, #7c20ff, #ec4899, #ff2f5f);
}

body.home-page .story-chip__avatar--add {
    font-size: 1.4rem;
    font-weight: 900;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(168, 85, 247, 0.42), rgba(236, 72, 153, 0.42));
}

body.home-page .story-chip__dot {
    position: absolute;
    left: 6px;
    bottom: 6px;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 2px solid rgba(7, 7, 13, 0.96);
    background: #22c55e;
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.18);
}

body.home-page .story-chip__badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: -2px;
}

body.home-page .story-chip__badges span {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(155, 92, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.62rem;
    line-height: 1.2;
}

body.home-page .home-feed-tabs {
    margin-top: 10px;
    margin-bottom: 6px;
}

body.home-page .home-feed-tabs__list {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 2px 8px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.home-page .home-feed-tabs__item {
    position: relative;
    padding: 10px 2px 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.93rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

body.home-page .home-feed-tabs__item.is-active {
    color: #fff;
}

body.home-page .home-feed-tabs__item.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -9px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

body.home-page .home-email-banner--compact {
    margin-top: 10px;
    padding: 12px 14px;
}

body.home-page .home-notifications-panel {
    margin-top: 10px;
    padding: 12px;
    background: rgba(11, 11, 22, 0.95);
    border-color: rgba(155, 92, 255, 0.12);
}

body.home-page .home-notifications-list {
    display: grid;
    gap: 8px;
}

body.home-page .home-notification-item {
    display: grid;
    gap: 3px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.home-page .home-notification-item strong {
    font-size: 0.92rem;
}

body.home-page .home-notification-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
}

body.home-page .home-notification-item small {
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.75rem;
}

@media (max-width: 760px) {
    body.home-page .home-topbar-inner--compact {
        min-height: 60px;
        padding-block: 8px;
        padding-inline: 10px;
        gap: 8px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    body.home-page .home-topbar-inner--compact .brand-mark-home {
        width: 36px;
        height: 36px;
        border-radius: 13px;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark strong {
        font-size: 0.9rem;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark small {
        display: none;
    }

    body.home-page .home-toolbar--compact {
        gap: 6px;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    body.home-page .home-icon-btn,
    body.home-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        width: 38px;
        height: 38px;
        border-radius: 12px;
    }

    body.home-page .home-icon-btn svg {
        width: 16px;
        height: 16px;
    }

    body.home-page .home-avatar-btn__circle {
        width: 28px;
        height: 28px;
        font-size: 0.72rem;
    }

    body.home-page .home-main {
        padding-top: 42px;
    }

    body.home-page .story-strip--compact {
        grid-auto-columns: 74px;
        gap: 8px;
    }

    body.home-page .story-chip__ring {
        width: 66px;
        height: 66px;
    }
}

@media (max-width: 540px) {
    body.home-page .home-topbar-inner--compact {
        gap: 6px;
        padding-inline: 8px;
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    body.home-page .home-topbar-inner--compact .brand-wordmark strong {
        font-size: 0.85rem;
    }

    body.home-page .home-main {
        padding-top: 44px;
    }

    body.home-page .home-feed-tabs__list {
        gap: 14px;
    }

    body.home-page .home-toolbar--compact {
        gap: 5px;
        margin-left: auto;
        flex-wrap: nowrap;
    }

    body.home-page .home-icon-btn,
    body.home-page .home-avatar-btn {
        min-width: 34px;
        min-height: 34px;
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    body.home-page .home-icon-btn svg {
        width: 15px;
        height: 15px;
    }

    body.home-page .home-avatar-btn__circle {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }
}
@media (min-width: 761px) {
    body.home-page .home-main { padding-top: 40px; }
}

/* Home authenticated spacing fix */
body.home-page .home-main {
    overflow: visible !important;
    padding-top: 104px !important;
}

@media (max-width: 760px) {
    body.home-page .home-main {
        padding-top: 96px !important;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.discover-page .discover-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.discover-page .discover-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.discover-page .discover-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.discover-page .discover-brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.discover-page .discover-topbar__toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.discover-page .home-icon-btn,
body.discover-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.discover-page .discover-main {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 170px !important;
}

body.discover-page .discover-shell {
    display: grid;
    gap: 14px;
}

body.discover-page .discover-head h1,
body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    color: #f8fafc;
}

body.discover-page .discover-head p {
    color: #b6bccb;
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-empty,
body.discover-page .discover-mini.card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

body.discover-page .discover-filter-form input,
body.discover-page .discover-filter-form select {
    background: rgba(8, 9, 20, 0.82);
    color: #f8fafc;
}

body.discover-page .discover-online-chip,
body.discover-page .discover-mini__copy strong,
body.discover-page .discover-empty strong {
    color: #f8fafc;
}

body.discover-page .discover-online-chip small,
body.discover-page .discover-mini__copy small,
body.discover-page .discover-tile__caption,
body.discover-page .discover-empty p {
    color: #b6bccb;
}

body.discover-page .discover-banner {
    background: linear-gradient(135deg, rgba(15, 17, 31, 0.94), rgba(31, 17, 54, 0.92));
}

body.discover-page .discover-tile__frame {
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
}

body.discover-page .discover-tile__overlay {
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
}

body.discover-page .discover-nearby {
    display: grid;
    gap: 12px;
}

@media (max-width: 760px) {
    body.discover-page .discover-topbar-inner--compact {
        min-height: 60px;
        gap: 8px;
        padding-inline: 12px;
    }

    body.discover-page .discover-brand-wordmark small {
        display: none;
    }

    body.discover-page .home-icon-btn,
    body.discover-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    body.discover-page .discover-filter-form {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-banner {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-tile__frame,
    body.discover-page .discover-tile.is-tall .discover-tile__frame,
    body.discover-page .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    body.discover-page .discover-nearby {
        display: none;
    }
}

body.discover-page {
    overflow-x: hidden;
}

body.discover-page .discover-main,
body.discover-page .discover-shell,
body.discover-page .discover-head,
body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-mosaic,
body.discover-page .discover-mini-grid,
body.discover-page .discover-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.discover-page .discover-topbar-inner--compact,
body.discover-page .discover-topbar-inner--compact .brand-home,
body.discover-page .discover-topbar__toolbar {
    max-width: 100%;
}

body.discover-page .discover-online-strip {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

@media (max-width: 760px) {
    body.discover-page .discover-mosaic,
    body.discover-page .discover-mini-grid {
        grid-template-columns: 1fr !important;
    }

    body.discover-page .discover-tile,
    body.discover-page .discover-mini {
        min-width: 0;
    }
}

body.discover-page {
    overflow-x: hidden;
}

body.discover-page .discover-main,
body.discover-page .discover-shell,
body.discover-page .discover-head,
body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-mosaic,
body.discover-page .discover-mini-grid,
body.discover-page .discover-empty {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

body.discover-page .discover-topbar-inner--compact,
body.discover-page .discover-topbar-inner--compact .brand-home,
body.discover-page .discover-topbar__toolbar {
    max-width: 100%;
}

body.discover-page .discover-online-strip {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
}

@media (max-width: 760px) {
    body.discover-page .discover-mosaic,
    body.discover-page .discover-mini-grid {
        grid-template-columns: 1fr !important;
    }

    body.discover-page .discover-tile,
    body.discover-page .discover-mini {
        min-width: 0;
    }
}

body.discover-page {
    background:
        radial-gradient(circle at top left, rgba(255, 77, 141, 0.10), transparent 22%),
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.10), transparent 18%),
        linear-gradient(180deg, #090914 0%, #101122 100%);
    color: #e5e7eb;
}

body.discover-page .discover-topbar--compact {
    background: rgba(7, 7, 13, 0.86);
    border-bottom: 1px solid rgba(168, 85, 247, 0.16);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.20);
}

body.discover-page .discover-topbar-inner--compact {
    min-height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    padding-block: 10px;
    padding-inline: clamp(12px, 2vw, 20px);
    box-sizing: border-box;
    overflow: hidden;
    width: 100%;
    flex-direction: row;
}

body.discover-page .discover-topbar-inner--compact .brand-home {
    flex: 1 1 auto;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: clamp(10px, 1.6vw, 14px);
}

body.discover-page .discover-brand-wordmark {
    min-width: 0;
    display: grid;
    gap: 2px;
}

body.discover-page .discover-brand-wordmark strong {
    white-space: nowrap;
    font-size: clamp(0.95rem, 1.5vw, 1.02rem);
}

body.discover-page .discover-brand-wordmark small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.discover-page .discover-topbar__toolbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
    margin-left: auto;
}

body.discover-page .home-icon-btn,
body.discover-page .home-avatar-btn {
    flex: 0 0 auto;
    position: relative;
    min-width: 42px;
    min-height: 42px;
    padding: 0;
    border-radius: 14px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition:
        transform 160ms ease,
        background 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.discover-page .home-icon-btn:hover,
body.discover-page .home-icon-btn:focus-visible,
body.discover-page .home-avatar-btn:hover,
body.discover-page .home-avatar-btn:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.38);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.22);
}

body.discover-page .home-icon-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

body.discover-page .home-icon-btn--compose {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.22));
}

body.discover-page .home-icon-btn--compose:hover,
body.discover-page .home-icon-btn--compose:focus-visible {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.34), rgba(236, 72, 153, 0.30));
}

body.discover-page .home-icon-btn--notifications strong {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    font-size: 0.68rem;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px rgba(7, 7, 13, 0.95);
}

body.discover-page .home-avatar-btn__circle {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f9a8d4, #a855f7);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
}

body.discover-page .discover-main {
    min-height: 0;
    padding-top: 14px;
    padding-bottom: 170px !important;
}

body.discover-page .discover-shell {
    display: grid;
    gap: 14px;
}

body.discover-page .discover-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 2px;
}

body.discover-page .discover-head__copy {
    display: grid;
    gap: 8px;
    max-width: 720px;
}

body.discover-page .discover-head__eyebrow,
body.discover-page .discover-section__eyebrow,
body.discover-page .discover-banner__eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.12);
    border: 1px solid rgba(124, 58, 237, 0.18);
    color: #c4b5fd;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

body.discover-page .discover-head h1,
body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    margin: 0;
    color: #f8fafc;
    letter-spacing: -0.04em;
}

body.discover-page .discover-head h1 {
    font-size: clamp(1.55rem, 2vw, 2.1rem);
}

body.discover-page .discover-head p {
    margin: 0;
    max-width: 64ch;
    color: #b6bccb;
    line-height: 1.65;
}

body.discover-page .discover-filter-button {
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(124, 32, 255, 0.22);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(236, 72, 153, 0.94));
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(76, 29, 149, 0.10);
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner,
body.discover-page .discover-empty,
body.discover-page .discover-mini.card {
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(14px);
}

body.discover-page .discover-filters,
body.discover-page .discover-section,
body.discover-page .discover-banner {
    padding: 14px;
}

body.discover-page .discover-filter-form {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}

body.discover-page .discover-filter-form label {
    display: grid;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #cbd5e1;
}

body.discover-page .discover-filter-form input,
body.discover-page .discover-filter-form select {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(196, 132, 252, 0.14);
    background: rgba(8, 9, 20, 0.82);
    color: #f8fafc;
    outline: none;
}

body.discover-page .discover-filter-check {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-bottom: 4px;
}

body.discover-page .discover-filter-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

body.discover-page .discover-section__head,
body.discover-page .discover-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.discover-page .discover-section__head h2,
body.discover-page .discover-section-head h2 {
    margin: 6px 0 0;
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    color: #f8fafc;
}

body.discover-page .discover-section__link {
    color: #d8b4fe;
    font-weight: 800;
}

body.discover-page .discover-online-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 92px;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 4px;
    scrollbar-width: thin;
}

body.discover-page .discover-online-chip {
    display: grid;
    justify-items: center;
    gap: 8px;
    color: #e5e7eb;
}

body.discover-page .discover-online-chip small {
    color: #94a3b8;
}

body.discover-page .discover-online-chip__ring {
    width: 80px;
    height: 80px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 3px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.26), rgba(255, 37, 58, 0.26));
    box-shadow: 0 12px 24px rgba(76, 29, 149, 0.12);
}

body.discover-page .discover-online-chip__ring.is-live {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.34), rgba(124, 58, 237, 0.22));
}

body.discover-page .discover-online-chip__avatar {
    border: 2px solid rgba(255, 255, 255, 0.92);
}

body.discover-page .discover-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

body.discover-page .discover-chip.is-live {
    background: rgba(16, 185, 129, 0.10);
    border-color: rgba(16, 185, 129, 0.16);
    color: #99f6e4;
}

body.discover-page .discover-chip.is-premium {
    background: rgba(124, 58, 237, 0.10);
    border-color: rgba(124, 58, 237, 0.16);
    color: #d8b4fe;
}

body.discover-page .discover-chip.is-verified {
    background: rgba(59, 130, 246, 0.10);
    border-color: rgba(59, 130, 246, 0.16);
    color: #93c5fd;
}

body.discover-page .discover-banner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(15, 17, 31, 0.94), rgba(31, 17, 54, 0.92));
}

body.discover-page .discover-banner.is-dismissing {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}

body.discover-page .discover-banner__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(124, 58, 237, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    cursor: pointer;
}

body.discover-page .discover-banner__copy strong {
    font-size: 1.08rem;
    color: #f8fafc;
}

body.discover-page .discover-banner__copy p {
    margin: 0;
    color: #b6bccb;
    line-height: 1.6;
}

body.discover-page .discover-mosaic {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 14px;
}

body.discover-page .discover-tile {
    display: grid;
    gap: 8px;
}

body.discover-page .discover-tile.is-tall {
    grid-row: span 2;
}

body.discover-page .discover-tile.is-wide {
    grid-column: span 2;
}

body.discover-page .discover-tile__frame {
    position: relative;
    overflow: hidden;
    min-height: 236px;
    border-radius: 22px;
    background: linear-gradient(180deg, #111827 0%, #0b1020 100%);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.16);
}

body.discover-page .discover-tile.is-tall .discover-tile__frame {
    min-height: 320px;
}

body.discover-page .discover-tile.is-wide .discover-tile__frame {
    min-height: 284px;
}

body.discover-page .discover-tile__media {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
    object-position: center center;
    display: block;
    background: #0b1020;
}

body.discover-page .discover-tile__placeholder {
    min-height: inherit;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at top, rgba(255, 77, 141, 0.18), transparent 38%), linear-gradient(135deg, rgba(17, 24, 39, 0.92), rgba(76, 29, 149, 0.82));
}

body.discover-page .discover-tile__placeholder-mark {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
}

.home-avatar-image,
.home-avatar-btn__circle .home-avatar-image,
.home-user-avatar .home-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
}

/* Messages chat refinement: compact bubbles, calmer spacing and a mobile-safe composer. */
body.messages-page.messages-page.messages-page .messages-thread__head {
    min-height: 58px;
    padding: 8px 14px;
    gap: 8px;
}

body.messages-page.messages-page.messages-page .messages-thread__profile {
    gap: 9px;
}

body.messages-page.messages-page.messages-page .messages-thread__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

body.messages-page.messages-page.messages-page .messages-thread__copy {
    gap: 2px;
}

body.messages-page.messages-page.messages-page .messages-thread__title-line h2 {
    font-size: .9rem;
}

body.messages-page.messages-page.messages-page .messages-thread__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .68rem;
}

body.messages-page.messages-page.messages-page .messages-thread__status::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c2c6ce;
    content: '';
}

body.messages-page.messages-page.messages-page .messages-thread__status:is([data-online="1"], .is-online)::before {
    background: #20b979;
}

body.messages-page.messages-page.messages-page .messages-thread__messages {
    gap: 5px;
    padding: 12px 14px 16px;
}

body.messages-page.messages-page.messages-page .message-row {
    max-width: min(82%, 620px);
    gap: 7px;
    margin: 0 0 2px;
}

body.messages-page.messages-page.messages-page .message-row__profile-link {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
}

body.messages-page.messages-page.messages-page .message-row__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

body.messages-page.messages-page.messages-page .message-bubble {
    max-width: 100%;
    padding: 8px 10px 6px;
    border-radius: 16px 16px 16px 5px;
    box-shadow: 0 1px 2px rgba(39, 28, 54, .04);
}

body.messages-page.messages-page.messages-page .message-bubble.is-self {
    border-radius: 16px 16px 5px 16px;
}

body.messages-page.messages-page.messages-page .message-bubble__meta {
    display: none;
}

body.messages-page.messages-page.messages-page .message-bubble__body {
    font-size: .86rem;
    line-height: 1.42;
}

body.messages-page.messages-page.messages-page .message-bubble__time {
    margin-top: 3px;
    font-size: .61rem;
    line-height: 1.2;
}

body.messages-page.messages-page.messages-page .message-row.is-other + .message-row.is-other {
    margin-top: -1px;
}

body.messages-page.messages-page.messages-page .message-row.is-other + .message-row.is-other .message-row__profile-link {
    visibility: hidden;
}

body.messages-page.messages-page.messages-page .message-row.is-other + .message-row.is-other .message-bubble {
    border-top-left-radius: 7px;
}

body.messages-page.messages-page.messages-page .message-row.is-self + .message-row.is-self .message-bubble {
    border-top-right-radius: 7px;
}

body.messages-page.messages-page.messages-page .messages-compose {
    grid-template-columns: 32px minmax(0, 1fr) 34px;
    gap: 6px;
    padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .98);
}

body.messages-page.messages-page.messages-page .messages-compose textarea {
    min-height: 36px;
    max-height: 96px;
    padding: 8px 11px;
    border-radius: 18px;
    background: #f8f9fb;
    font-size: .82rem;
    line-height: 1.35;
}

body.messages-page.messages-page.messages-page .messages-compose__tool,
body.messages-page.messages-page.messages-page .messages-compose__send {
    width: 32px;
    height: 32px;
}

body.messages-page.messages-page.messages-page .messages-compose__tool svg {
    width: 18px;
    height: 18px;
}

body.messages-page.messages-page.messages-page .messages-compose__send {
    background: linear-gradient(135deg, #8b20ff, #df1594);
    font-size: .9rem;
}

@media (max-width: 720px) {
    body.messages-page.messages-page.messages-page .messages-thread__head {
        min-height: 54px;
        padding: 7px 10px;
    }

    body.messages-page.messages-page.messages-page .messages-thread__avatar {
        width: 34px;
        height: 34px;
    }

    body.messages-page.messages-page.messages-page .messages-thread__messages {
        gap: 4px;
        padding: 10px 10px 12px;
    }

    body.messages-page.messages-page.messages-page .message-row {
        max-width: 88%;
    }

    body.messages-page.messages-page.messages-page .messages-compose {
        position: sticky;
        bottom: 0;
        z-index: 3;
        padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px));
    }
}

body.discover-page .discover-tile__overlay {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: grid;
    gap: 8px;
    padding: 12px 13px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.02), rgba(17, 24, 39, 0.78));
    color: #fff;
}

body.discover-page .discover-tile__author {
    display: flex;
    align-items: center;
    gap: 10px;
}

body.discover-page .discover-tile__avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, #7c3aed, #ff4d8d);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-weight: 900;
    flex: 0 0 auto;
}

body.discover-page .discover-tile__author small {
    color: rgba(255, 255, 255, 0.82);
}

body.discover-page .discover-tile__chips {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

body.discover-page .discover-tile__caption {
    margin: 0;
    color: #b6bccb;
    line-height: 1.55;
    font-size: 0.92rem;
}

body.discover-page .discover-tile__count {
    position: absolute;
    right: 14px;
    top: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.72);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

body.discover-page .discover-tile__actions {
    position: absolute;
    left: 14px;
    top: 14px;
    display: flex;
    gap: 7px;
    z-index: 2;
}

body.discover-page .discover-action {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(17, 24, 39, 0.54);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

body.discover-page .discover-action:hover {
    transform: translateY(-1px);
}

body.discover-page .discover-action.is-like:hover {
    background: rgba(255, 37, 58, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-action.is-favorite:hover {
    background: rgba(124, 58, 237, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-action.is-pass:hover {
    background: rgba(107, 114, 128, 0.88);
    border-color: rgba(255, 255, 255, 0.24);
}

body.discover-page .discover-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.discover-page .discover-mini {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 13px 14px;
    border-radius: 20px;
}

body.discover-page .discover-mini__avatar {
    width: 66px;
    height: 66px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(255, 77, 141, 0.18));
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(124, 58, 237, 0.12);
    color: #d8b4fe;
    font-size: 1.2rem;
    font-weight: 900;
}

body.discover-page .discover-mini__copy strong {
    color: #f8fafc;
}

body.discover-page .discover-mini__copy small {
    color: #94a3b8;
}

body.discover-page .discover-mini__tag {
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(124, 58, 237, 0.10);
    border: 1px solid rgba(124, 58, 237, 0.14);
    color: #d8b4fe;
    font-size: 0.72rem;
    font-weight: 800;
}

body.discover-page .discover-empty {
    padding: 18px;
}

body.discover-page .discover-empty strong {
    color: #f8fafc;
}

body.discover-page .discover-empty p {
    margin: 0;
    color: #b6bccb;
}

@media (max-width: 760px) {
    body.discover-page .discover-topbar-inner--compact {
        min-height: 60px;
        gap: 8px;
        padding-inline: 12px;
    }

    body.discover-page .discover-brand-wordmark small {
        display: none;
    }

    body.discover-page .discover-topbar__toolbar {
        gap: 6px;
    }

    body.discover-page .home-icon-btn,
    body.discover-page .home-avatar-btn {
        min-width: 38px;
        min-height: 38px;
        border-radius: 12px;
    }

    body.discover-page .discover-main {
        padding-top: 12px;
        padding-bottom: 168px !important;
    }

    body.discover-page .discover-head {
        align-items: flex-start;
    }

    body.discover-page .discover-section,
    body.discover-page .discover-banner,
    body.discover-page .discover-filters {
        padding: 14px;
    }

    body.discover-page .discover-filter-form {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-banner {
        grid-template-columns: 1fr;
    }

    body.discover-page .discover-online-strip {
        grid-auto-columns: 90px;
    }

    body.discover-page .discover-tile.is-tall,
    body.discover-page .discover-tile.is-wide {
        grid-column: auto;
        grid-row: auto;
    }

    body.discover-page .discover-tile__frame,
    body.discover-page .discover-tile.is-tall .discover-tile__frame,
    body.discover-page .discover-tile.is-wide .discover-tile__frame {
        min-height: 250px;
    }

    body.discover-page .discover-nearby {
        display: none;
    }
}
body.profile-menu-page .app-main-minimal {
    padding-top: 16px;
    padding-bottom: 130px !important;
}

.profile-menu-shell {
    display: grid;
    justify-items: center;
    gap: 16px;
}

.profile-menu-card {
    width: min(100%, 740px);
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
    background: rgba(15, 17, 31, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.12);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.22);
}

.profile-menu-card__hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
}

.profile-menu-card__avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #7c3aed, #f72585);
    background-size: cover;
    background-position: center;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 900;
    border: 3px solid rgba(244, 114, 182, 0.18);
    box-shadow: 0 10px 24px rgba(124, 58, 237, 0.22);
}

.profile-menu-card__avatar.has-image {
    background-color: #0b1020;
}

.profile-menu-card__copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-menu-card__eyebrow {
    color: #a78bfa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.profile-menu-card__copy h1 {
    margin: 0;
    font-size: clamp(1.35rem, 2vw, 1.9rem);
    line-height: 1.05;
    color: #f8fafc;
}

.profile-menu-card__copy p,
.profile-menu-card__copy small {
    margin: 0;
    color: rgba(226, 232, 240, 0.78);
    line-height: 1.5;
}

.profile-menu-card__edit {
    white-space: nowrap;
}

.profile-menu-list {
    display: grid;
    gap: 10px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid rgba(196, 132, 252, 0.12);
    background: rgba(8, 9, 20, 0.72);
    color: #e5e7eb;
    text-decoration: none;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(244, 114, 182, 0.24);
    background: rgba(17, 24, 39, 0.92);
}

.profile-menu-item__icon {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(247, 37, 133, 0.20));
    color: #fff;
    flex: 0 0 auto;
}

.profile-menu-item__icon svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.profile-menu-item__copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.profile-menu-item__copy strong {
    font-size: 0.98rem;
    color: #f8fafc;
}

.profile-menu-item__copy small {
    color: rgba(226, 232, 240, 0.68);
    font-size: 0.8rem;
    line-height: 1.3;
}

.profile-menu-item__arrow {
    color: rgba(226, 232, 240, 0.46);
    font-size: 1.5rem;
    line-height: 1;
    flex: 0 0 auto;
}

.profile-menu-item[href*="logout"] {
    border-color: rgba(244, 63, 94, 0.18);
}

.profile-menu-item[href*="logout"] .profile-menu-item__icon {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.24), rgba(244, 114, 182, 0.20));
}

@media (max-width: 760px) {
    .profile-menu-card {
        padding: 16px;
        border-radius: 24px;
    }

    .profile-menu-card__hero {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .profile-menu-card__edit {
        width: 100%;
        justify-content: center;
    }

    .profile-menu-item {
        padding: 12px;
    }
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body.is-authenticated {
    overflow-x: hidden;
}

body.is-authenticated .wrap,
body.is-authenticated .app-main,
body.is-authenticated .app-main-minimal,
body.is-authenticated .home-main,
body.is-authenticated .discover-main,
body.is-authenticated .search-main,
body.is-authenticated .messages-main,
body.is-authenticated .profile-main,
body.is-authenticated .profile-menu-shell,
body.is-authenticated .profile-shell,
body.is-authenticated .messages-layout,
body.is-authenticated .messages-sidebar,
body.is-authenticated .messages-thread-panel,
body.is-authenticated .discover-shell,
body.is-authenticated .discover-section,
body.is-authenticated .discover-banner,
body.is-authenticated .discover-filters,
body.is-authenticated .discover-empty,
body.is-authenticated .search-shell,
body.is-authenticated .search-toolbar,
body.is-authenticated .search-filters,
body.is-authenticated .search-tip,
body.is-authenticated .search-result,
body.is-authenticated .search-empty {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

body.home-page .social-home {
    width: min(1120px, calc(100% - 24px));
}

body.home-page .social-reaction-bar {
    max-width: 100%;
}

@media (max-width: 760px) {
    body.home-page .social-home {
        width: min(100%, 1120px);
    }

    body.home-page .social-home,
    body.home-page .social-main,
    body.home-page .social-feed,
    body.home-page .social-card,
    body.home-page .social-card__content,
    body.home-page .social-card__header,
    body.home-page .social-card__footer,
    body.home-page .social-composer,
    body.home-page .social-composer__top,
    body.home-page .social-composer__bottom,
    body.home-page .social-video-player,
    body.home-page .social-card__media--single,
    body.home-page .social-card__carousel-slide {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.home-page .social-video-player,
    body.home-page .social-card__media--single.is-video > .social-video-player {
        height: min(65vh, 560px);
        min-height: 220px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-video-player.is-portrait {
        height: min(65vh, 560px);
        min-height: 240px;
        max-height: min(65vh, 560px);
    }

    body.home-page .social-card__media--single {
        height: clamp(180px, 58vw, 260px);
        min-height: 180px;
    }

    body.home-page .social-card__media--single.is-video {
        height: auto;
        min-height: 0;
    }

    body.home-page .social-card__media--single img,
    body.home-page .social-card__media--single video,
    body.home-page .social-video-player__media,
    body.home-page .social-card__carousel-slide img,
    body.home-page .social-card__carousel-slide video {
        width: 100%;
        max-width: 100%;
        object-fit: contain;
    }

    body.home-page .social-home .social-reaction-bar {
        max-width: 100%;
    }

    .post-modal {
        padding: 0;
        align-items: stretch;
        overflow-x: hidden;
    }

    .post-modal__panel {
        width: 100%;
        max-width: 100%;
        max-height: 100dvh;
        border-radius: 0;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .post-modal__head {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        padding: 12px 14px;
    }

    .post-modal__head h2 {
        font-size: 1rem;
        overflow-wrap: anywhere;
    }

    .post-modal__icon-btn {
        width: 40px;
        height: 40px;
    }

    .post-modal__grid {
        grid-template-columns: 1fr;
        width: 100%;
        max-width: 100%;
    }

    .post-modal__media,
    .post-modal__side {
        padding: 12px 14px;
        overflow: visible;
    }

    .post-modal__media {
        border-right: 0;
        border-bottom: 1px solid rgba(155, 92, 255, 0.12);
    }

    .post-modal__dropzone {
        min-height: 180px;
        padding: 16px 12px;
        width: 100%;
        max-width: 100%;
    }

    .post-modal__dropzone strong,
    .post-modal__dropzone p,
    .post-modal__terms,
    .post-modal__status {
        overflow-wrap: anywhere;
    }

    .post-modal__dropzone .btn,
    .post-modal__side .btn-block {
        width: 100%;
        max-width: 100%;
        min-height: 46px;
        white-space: normal;
    }

    .post-modal__preview {
        width: 100%;
        max-width: 100%;
    }

    .post-modal__preview-empty {
        min-height: 96px;
    }

    .post-modal__preview-item {
        width: 100%;
        max-width: 100%;
        padding: 10px;
    }

    .post-modal__preview-item img,
    .post-modal__preview-item video {
        width: 100%;
        max-width: 100%;
        height: min(52vw, 240px);
        max-height: 240px;
        object-fit: contain;
        background: #000;
    }

    .post-modal__preview-meta {
        flex-wrap: wrap;
    }

    .post-modal__preview-controls {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }

    .post-modal__preview-controls button {
        width: 100%;
        min-width: 0;
    }

    .post-modal__field textarea {
        width: 100%;
        max-width: 100%;
        min-height: 140px;
    }

    .post-modal__visibility {
        width: 100%;
        max-width: 100%;
        padding: 12px;
    }
}

/* Composer do dashboard: superfície clara, compacta e própria para publicação social. */
body.home-page:not(.admin-page) .post-modal {
    padding: 20px;
    background: rgba(17, 24, 39, .22);
    backdrop-filter: blur(4px);
}
body.home-page:not(.admin-page) .post-modal__backdrop {
    background: rgba(17, 24, 39, .34);
    backdrop-filter: blur(3px);
}
body.home-page:not(.admin-page) .post-modal__panel {
    width: min(640px, 100%);
    max-height: min(760px, calc(100dvh - 40px));
    overflow: hidden;
    border: 1px solid #e1e5eb;
    border-radius: 18px;
    background: #fff;
    color: #17181d;
    box-shadow: 0 18px 50px rgba(31, 41, 55, .18);
}
body.home-page:not(.admin-page) .post-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid #edf0f3;
}
body.home-page:not(.admin-page) .post-modal__head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    font-weight: 800;
    text-align: left;
}
body.home-page:not(.admin-page) .post-modal__icon-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1;
}
body.home-page:not(.admin-page) .post-modal__icon-btn:hover,
body.home-page:not(.admin-page) .post-modal__icon-btn:focus-visible {
    background: #fbeaf7;
    color: #a21caf;
}
body.home-page:not(.admin-page) .post-modal__form {
    max-height: calc(min(760px, 100dvh - 40px) - 70px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
}
body.home-page:not(.admin-page) .post-modal__grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
body.home-page:not(.admin-page) .post-modal__media,
body.home-page:not(.admin-page) .post-modal__side {
    display: contents;
}
body.home-page:not(.admin-page) .post-modal__field {
    order: 1;
    gap: 7px;
}
body.home-page:not(.admin-page) .post-modal__field > span,
body.home-page:not(.admin-page) .post-modal__visibility legend {
    color: #20242b;
    font-size: .82rem;
    font-weight: 800;
}
body.home-page:not(.admin-page) .post-modal__field textarea {
    width: 100%;
    min-height: 112px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #dfe3e8;
    border-radius: 11px;
    background: #f7f8fa;
    color: #20232a;
    resize: vertical;
}
body.home-page:not(.admin-page) .post-modal__field textarea::placeholder {
    color: #858b96;
    opacity: 1;
}
body.home-page:not(.admin-page) .post-modal__field small {
    color: #8a929d;
    font-size: .7rem;
}
body.home-page:not(.admin-page) .post-modal__media {
    order: 2;
    display: grid;
    gap: 9px;
}
body.home-page:not(.admin-page) .post-modal__dropzone {
    min-height: 112px;
    padding: 14px 16px;
    border: 1px dashed #d8c5e1;
    border-radius: 13px;
    background: #fcf8fd;
    gap: 5px;
}
body.home-page:not(.admin-page) .post-modal__dropzone-icon {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 9px;
    background: #f5e8f7;
    color: #a21caf;
    font-size: 1.05rem;
}
body.home-page:not(.admin-page) .post-modal__dropzone strong {
    color: #30343d;
    font-size: .82rem;
}
body.home-page:not(.admin-page) .post-modal__dropzone p {
    color: #7b838e;
    font-size: .7rem;
    line-height: 1.35;
}
body.home-page:not(.admin-page) .post-modal__dropzone .btn {
    min-height: 32px;
    margin-top: 3px;
    padding: 0 12px;
    font-size: .7rem;
}
body.home-page:not(.admin-page) .post-modal__preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
body.home-page:not(.admin-page) .post-modal__preview-empty {
    display: none;
}
body.home-page:not(.admin-page) .post-modal__preview-item {
    gap: 7px;
    padding: 7px;
    border: 1px solid #e2e5ea;
    border-radius: 11px;
    background: #f7f8fa;
}
body.home-page:not(.admin-page) .post-modal__preview-item img,
body.home-page:not(.admin-page) .post-modal__preview-item video {
    height: 138px;
    border-radius: 8px;
    background: #eef0f3;
    object-fit: cover;
}
body.home-page:not(.admin-page) .post-modal__preview-meta {
    color: #68707c;
    font-size: .7rem;
}
body.home-page:not(.admin-page) .post-modal__preview-meta strong {
    color: #30343d;
}
body.home-page:not(.admin-page) .post-modal__preview-controls {
    gap: 5px;
}
body.home-page:not(.admin-page) .post-modal__preview-controls button {
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid #dfe3e8;
    background: #fff;
    color: #59616d;
    font-size: .68rem;
}
body.home-page:not(.admin-page) .post-modal__visibility {
    order: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border: 1px solid #e2e5ea;
    border-radius: 11px;
    background: #f7f8fa;
}
body.home-page:not(.admin-page) .post-modal__visibility legend {
    grid-column: 1 / -1;
    padding: 0 3px;
}
body.home-page:not(.admin-page) .post-modal__visibility label {
    gap: 7px;
    color: #4b5563;
    font-size: .75rem;
    font-weight: 700;
}
body.home-page:not(.admin-page) .post-modal__visibility input {
    accent-color: #a21caf;
}
body.home-page:not(.admin-page) .post-modal__terms {
    order: 4;
    color: #7b838e;
    font-size: .7rem;
}
body.home-page:not(.admin-page) .post-modal__terms a {
    color: #a21caf;
}
body.home-page:not(.admin-page) .post-modal__status {
    order: 5;
    min-height: 0;
    color: #b42343;
    font-size: .75rem;
}
body.home-page:not(.admin-page) .post-modal__side > .btn-block {
    order: 6;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #7c3aed, #d11b8a);
    color: #fff;
    font-size: .86rem;
    font-weight: 800;
    box-shadow: 0 6px 15px rgba(162, 28, 175, .16);
}
@media (max-width: 600px) {
    body.home-page:not(.admin-page) .post-modal {
        padding: 8px;
    }
    body.home-page:not(.admin-page) .post-modal__panel {
        width: 100%;
        max-height: calc(100dvh - 16px);
        border-radius: 16px;
    }
    body.home-page:not(.admin-page) .post-modal__form {
        max-height: calc(100dvh - 78px);
        padding: 16px;
    }
    body.home-page:not(.admin-page) .post-modal__preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.home-page:not(.admin-page) .post-modal__preview-item img,
    body.home-page:not(.admin-page) .post-modal__preview-item video {
        height: 116px;
    }
}

/* Final search page theme overrides */
body.search-page {
    background: #f5f6fa;
    color: #1f2937;
}
body.search-page .search-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid #e7e8ef;
    box-shadow: 0 2px 14px rgba(31,41,55,.06);
}
body.search-page .search-topbar__inner { min-height: 66px; }
body.search-page .search-topbar__back { color: #374151; background: #fff; border-color: #e5e7eb; }
body.search-page .search-topbar__title { color: #111827; }
body.search-page .search-filter-button,
body.search-page .search-topbar__filter {
    min-height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg,#ec1980,#a72bc7);
    color: #fff;
    font-weight: 800;
}
body.search-page .search-main {
    width: min(1120px,calc(100% - 32px));
    padding-top: 22px;
    padding-bottom: 132px !important;
}
body.search-page .search-toolbar,
body.search-page .search-filters,
body.search-page .search-tip,
body.search-page .search-result,
body.search-page .search-empty {
    background: #fff;
    border-color: #e7e8ef;
    box-shadow: 0 5px 18px rgba(31,41,55,.05);
    backdrop-filter: none;
}
body.search-page .search-toolbar { padding: 14px 16px; border-radius: 14px; }
body.search-page .search-toolbar__query input,
body.search-page .search-toolbar__sort select,
body.search-page .search-filters__form input,
body.search-page .search-filters__form select {
    background: #fff;
    border-color: #dfe3ea;
    color: #1f2937;
}
body.search-page .search-toolbar__sort span,
body.search-page .search-filters__form label span { color: #6b7280; }
body.search-page .search-toolbar__view { padding: 3px; border-radius: 11px; background: #f1f2f6; }
body.search-page .search-view-button { background: transparent; border: 0; color: #6b7280; }
body.search-page .search-view-button.is-active { background: #fff; color: #a21caf; box-shadow: 0 2px 7px rgba(31,41,55,.1); }
body.search-page .search-tip { padding: 11px 14px; border-radius: 13px; background: #fff8fc; border-color: #f5d9e9; }
body.search-page .search-tip p { color: #4b5563; font-size: .9rem; }
body.search-page .search-tip__icon { background: #fce7f3; color: #db2777; }
body.search-page .search-tip__close { background: #f3edf2; color: #6b7280; }
body.search-page .search-results { gap: 0; overflow: visible; }
body.search-page .search-results.is-list {
    background: #fff;
    border: 1px solid #e7e8ef;
    border-radius: 16px;
    box-shadow: 0 5px 18px rgba(31,41,55,.05);
}
body.search-page .search-result {
    min-width: 0;
    padding: 20px 22px;
    border: 0;
    border-bottom: 1px solid #edf0f4;
    border-radius: 0;
    box-shadow: none;
}
body.search-page .search-result:last-child { border-bottom: 0; }
body.search-page .search-result__avatar { width: 74px; height: 74px; background: linear-gradient(135deg,#c026d3,#ec4899); }
body.search-page .search-result__dot { border-color: #fff; }
body.search-page .search-result__title-line strong { color: #111827; font-size: 1.05rem; }
body.search-page .search-result__headline,
body.search-page .search-result__location { color: #4b5563; font-size: .9rem; }
body.search-page .search-result__location { color: #6b7280; }
body.search-page .search-pill.is-verified { background: #e8f1ff; color: #2563eb; }
body.search-page .search-pill.is-premium { background: #f4e8ff; color: #9333ea; }
body.search-page .search-result__bio,
body.search-page .search-result__bio p,
body.search-page .search-result__bio summary { color: #4b5563; }
body.search-page .search-result__bio summary span { color: #c026d3; }
body.search-page .search-result__gallery { gap: 6px; }
body.search-page .search-result__photo {
    min-width: 0;
    height: clamp(110px,16vw,170px);
    min-height: 0;
    border-radius: 10px;
    background: #f1f3f6;
}
body.search-page .search-result__photo img { height: 100%; min-height: 0; object-fit: cover; }
body.search-page .search-result__status strong { color: #16a34a; }
body.search-page .search-result__status small { color: #6b7280; }
body.search-page .search-action { border-color: #e5e7eb; background: #fff; color: #4b5563; }
body.search-page .search-action--add { min-width: 126px; border: 0; background: linear-gradient(135deg,#ec1980,#a72bc7); color: #fff; }
body.search-page .search-action--icon { color: #a21caf; }
body.search-page .search-empty strong,
body.search-page .search-empty p { color: #374151; }
@media (min-width: 900px) {
    body.search-page .search-results.is-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; background: transparent; border: 0; box-shadow: none; }
    body.search-page .search-results.is-grid .search-result { border: 1px solid #e7e8ef; border-radius: 16px; box-shadow: 0 5px 18px rgba(31,41,55,.05); }
}
@media (max-width: 760px) {
    body.search-page .search-main { width: min(calc(100% - 20px),1120px); padding-top: 14px; padding-bottom: 148px !important; }
    body.search-page .search-toolbar { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; }
    body.search-page .search-toolbar__form { display: contents; }
    body.search-page .search-toolbar__sort { grid-column: 1 / -1; grid-row: 1; }
    body.search-page .search-toolbar__view { grid-column: 1; grid-row: 2; justify-self: start; }
    body.search-page .search-result { padding: 17px 14px; }
    body.search-page .search-result__avatar { width: 64px; height: 64px; }
    body.search-page .search-result__photo { height: clamp(96px,29vw,150px); }
    body.search-page .search-result__footer { align-items: stretch; }
    body.search-page .search-result__actions { width: 100%; }
    body.search-page .search-result__actions form:first-child { flex: 1 1 auto; }
    body.search-page .search-action--add { width: 100%; }
}

/* Search finish: dark identity header, light discovery surface */
body.search-page {
    background: #f7f7f9 !important;
    color: #202124 !important;
    overflow-x: hidden;
}
body.search-page .search-topbar {
    background: #0d0b18 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.14) !important;
}
body.search-page .search-topbar__back {
    color: #fff !important;
    background: rgba(255,255,255,.06) !important;
    border-color: rgba(255,255,255,.12) !important;
}
body.search-page .search-topbar__title { color: #fff !important; }
body.search-page .search-main {
    width: min(1120px, calc(100% - 32px)) !important;
    padding-top: 18px !important;
    padding-bottom: 136px !important;
}
body.search-page .search-toolbar,
body.search-page .search-filters,
body.search-page .search-tip,
body.search-page .search-result,
body.search-page .search-empty {
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}
body.search-page .search-toolbar {
    padding: 0 0 14px !important;
    border: 0 !important;
    border-bottom: 1px solid #e4e5e9 !important;
    border-radius: 0 !important;
}
body.search-page .search-toolbar__sort select {
    min-height: 42px !important;
    padding: 9px 34px 9px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #dfe1e6 !important;
    background: #fff !important;
    color: #303238 !important;
    box-shadow: none !important;
}
body.search-page .search-toolbar__sort span { color: #74777f !important; }
body.search-page .search-toolbar__view {
    padding: 2px !important;
    gap: 1px !important;
    border-radius: 8px !important;
    background: #ececf0 !important;
}
body.search-page .search-view-button {
    width: 36px !important;
    height: 36px !important;
    border-radius: 7px !important;
    color: #7b7e86 !important;
}
body.search-page .search-view-button.is-active {
    color: #b21caf !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(31,41,55,.12) !important;
}
body.search-page .search-tip {
    padding: 10px 12px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: #f0f1f3 !important;
}
body.search-page .search-tip p { color: #44474e !important; font-size: .86rem !important; }
body.search-page .search-tip__icon { background: #fbe1ef !important; color: #d21b78 !important; }
body.search-page .search-tip__close { background: #e2e3e7 !important; color: #656870 !important; }
body.search-page .search-results { gap: 0 !important; }
body.search-page .search-results.is-list {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
body.search-page .search-result {
    display: grid !important;
    gap: 10px !important;
    padding: 17px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid #e3e4e8 !important;
    border-radius: 0 !important;
}
body.search-page .search-result:last-child { border-bottom: 0 !important; }
body.search-page .search-result__main { gap: 12px !important; }
body.search-page .search-result__avatar {
    width: 66px !important;
    height: 66px !important;
    background: linear-gradient(135deg,#c026d3,#ec4899) !important;
    box-shadow: none !important;
}
body.search-page .search-result__dot { border-color: #f7f7f9 !important; }
body.search-page .search-result__title-line strong { color: #17181b !important; }
body.search-page .search-result__headline { color: #4d5057 !important; }
body.search-page .search-result__location { color: #74777f !important; }
body.search-page .search-result__bio,
body.search-page .search-result__bio summary,
body.search-page .search-result__bio p { color: #4d5057 !important; }
body.search-page .search-result__bio summary span { color: #a21caf !important; }
body.search-page .search-result__gallery { gap: 5px !important; }
body.search-page .search-result__photo {
    height: clamp(104px, 15vw, 158px) !important;
    min-height: 0 !important;
    border-radius: 7px !important;
    background: #e9eaed !important;
}
body.search-page .search-result__photo img { min-height: 0 !important; }
body.search-page .search-result__status strong { color: #159447 !important; }
body.search-page .search-result__status small { color: #777a81 !important; }
body.search-page .search-action {
    height: 38px !important;
    border: 1px solid #dedfe4 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: #4b4e55 !important;
    box-shadow: none !important;
}
body.search-page .search-action--add {
    min-width: 120px !important;
    border: 1px solid #ead6e9 !important;
    background: #fff !important;
    color: #a21caf !important;
}
body.search-page .search-action--icon { width: 38px !important; color: #a21caf !important; }
@media (max-width: 760px) {
    body.search-page .search-main {
        width: calc(100% - 28px) !important;
        padding-top: 14px !important;
        padding-bottom: 150px !important;
    }
    body.search-page .search-toolbar { padding-bottom: 12px !important; }
    body.search-page .search-result { padding: 15px 0 !important; }
    body.search-page .search-result__avatar { width: 60px !important; height: 60px !important; }
    body.search-page .search-result__photo { height: clamp(94px, 29vw, 142px) !important; }
    body.search-page .search-result__footer { gap: 9px !important; }
    body.search-page .search-result__actions { gap: 7px !important; }
    body.search-page .search-action--add { min-width: 0 !important; }
}

/* Home final cascade: keep shared chrome dark and content light */
body.home-page.home-page {
    background: #f7f7f9 !important;
    color: #17181b !important;
    overflow-x: hidden;
}
body.home-page.home-page .home-topbar {
    background: #0d0b18 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.14) !important;
    backdrop-filter: none !important;
}
body.home-page.home-page .social-home,
body.home-page.home-page .home-feed-tabs,
body.home-page.home-page .home-email-banner { width: min(1120px, calc(100% - 24px)) !important; }
body.home-page.home-page .social-stories-panel,
body.home-page.home-page .home-email-banner,
body.home-page.home-page .home-feed-tabs { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.home-page.home-page .social-stories-panel { padding: 2px 0 12px !important; }
body.home-page.home-page .social-panel__eyebrow { color: #8d2bb7 !important; }
body.home-page.home-page .social-panel__head h2 { color: #17181b !important; }
body.home-page.home-page .social-panel__link { color: #a21caf !important; }
body.home-page.home-page .story-chip { color: #17181b !important; }
body.home-page.home-page .story-chip small { color: #73767e !important; }
body.home-page.home-page .story-chip__ring { width: 66px; height: 66px; padding: 2px; background: linear-gradient(135deg,#d21b78,#8d2bb7); }
body.home-page.home-page .story-chip__avatar { background-color: #eef0f3; border-color: #f7f7f9; }
body.home-page.home-page .story-chip--add .story-chip__ring { background: #f7ddeb; }
body.home-page.home-page .story-chip--add .story-chip__avatar { background: #fff; color: #d21b78; }
body.home-page.home-page .story-chip__badges { display: none; }
body.home-page.home-page .home-feed-tabs__list { border-bottom: 1px solid #e4e5e9 !important; }
body.home-page.home-page .home-feed-tabs__item { color: #73767e !important; }
body.home-page.home-page .home-feed-tabs__item.is-active { color: #17181b !important; }
body.home-page.home-page .home-feed-tabs__item.is-active::after { background: #d21b78 !important; border-radius: 0; }
body.home-page.home-page .home-email-banner {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 32px 9px 10px !important;
    border-bottom: 1px solid #e4e5e9 !important;
    border-radius: 0 !important;
}
body.home-page.home-page .home-email-banner::before { content: '✉'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fbe6f1; color: #d21b78; font-size: .78rem; }
body.home-page.home-page .home-email-banner__copy strong { color: #17181b !important; font-size: .86rem; }
body.home-page.home-page .home-email-banner__copy p { color: #73767e !important; font-size: .76rem; }
body.home-page.home-page .home-email-banner__actions .btn { min-height: 32px; padding: 0 10px; border: 1px solid #ead6e9; border-radius: 7px; background: #fff; color: #8d2bb7; font-size: .75rem; }
body.home-page.home-page .home-email-banner__close { width: 25px; height: 25px; top: 7px; right: 0; border: 0; background: #ececf0; color: #777a81; }
body.home-page.home-page .social-feed-panel { gap: 0; background: #fff !important; border-radius: 12px !important; box-shadow: 0 5px 18px rgba(31,41,55,.05) !important; }
body.home-page.home-page .social-card { padding: 15px !important; gap: 12px; background: #fff !important; border: 0 !important; border-bottom: 1px solid #e4e5e9 !important; border-radius: 0 !important; box-shadow: none !important; }
body.home-page.home-page .social-card__author strong { color: #17181b !important; }
body.home-page.home-page .social-card__author div { color: #73767e !important; }
body.home-page.home-page .social-card__menu { background: #fff !important; border-color: #e1e2e6 !important; color: #656870 !important; }
body.home-page.home-page .social-card__body p { color: #41444b !important; }
body.home-page.home-page .social-card__metrics { color: #73767e !important; }
body.home-page.home-page .social-card__media--single,
body.home-page.home-page .social-card__carousel { border-radius: 10px !important; }
body.home-page.home-page .social-icon-btn { background: #fff !important; border-color: #e1e2e6 !important; color: #656870 !important; }
body.home-page.home-page .social-icon-btn--reaction.is-reacted { color: #d21b78 !important; }
body.home-page.home-page .home-bottom-nav__shell { background: rgba(13,11,24,.96) !important; border-color: rgba(255,255,255,.10) !important; box-shadow: 0 -8px 22px rgba(0,0,0,.16) !important; backdrop-filter: blur(14px) !important; }
body.home-page.home-page .home-bottom-nav__item { border-radius: 12px; }
body.home-page.home-page .home-bottom-nav__item.is-active { background: rgba(210,27,120,.16) !important; box-shadow: inset 0 0 0 1px rgba(210,27,120,.28) !important; }
@media (max-width: 760px) {
    body.home-page.home-page .social-home,
    body.home-page.home-page .home-feed-tabs,
    body.home-page.home-page .home-email-banner { width: calc(100% - 24px) !important; }
    body.home-page.home-page .social-card { padding: 14px 0 !important; }
    body.home-page.home-page .social-feed-panel { border-radius: 0 !important; box-shadow: none !important; }
    body.home-page.home-page .home-email-banner { grid-template-columns: auto minmax(0,1fr); }
    body.home-page.home-page .home-email-banner__actions { grid-column: 2; justify-content: flex-start; }
    body.home-page.home-page .home-email-banner__actions .btn { width: fit-content; }
}

/* Home final cascade: keep shared chrome dark and content light */
body.home-page.home-page {
    background: #f7f7f9 !important;
    color: #17181b !important;
    overflow-x: hidden;
}
body.home-page.home-page .home-topbar {
    background: #0d0b18 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,.14) !important;
    backdrop-filter: none !important;
}
body.home-page.home-page .social-home,
body.home-page.home-page .home-feed-tabs,
body.home-page.home-page .home-email-banner { width: min(1120px, calc(100% - 24px)) !important; }
body.home-page.home-page .social-stories-panel,
body.home-page.home-page .home-email-banner,
body.home-page.home-page .home-feed-tabs { background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.home-page.home-page .social-stories-panel { padding: 2px 0 12px !important; }
body.home-page.home-page .social-panel__eyebrow { color: #8d2bb7 !important; }
body.home-page.home-page .social-panel__head h2 { color: #17181b !important; }
body.home-page.home-page .social-panel__link { color: #a21caf !important; }
body.home-page.home-page .story-chip { color: #17181b !important; }
body.home-page.home-page .story-chip small { color: #73767e !important; }
body.home-page.home-page .story-chip__ring { width: 66px; height: 66px; padding: 2px; background: linear-gradient(135deg,#d21b78,#8d2bb7); }
body.home-page.home-page .story-chip__avatar { background-color: #eef0f3; border-color: #f7f7f9; }
body.home-page.home-page .story-chip--add .story-chip__ring { background: #f7ddeb; }
body.home-page.home-page .story-chip--add .story-chip__avatar { background: #fff; color: #d21b78; }
body.home-page.home-page .story-chip__badges { display: none; }
body.home-page.home-page .home-feed-tabs__list { border-bottom: 1px solid #e4e5e9 !important; }
body.home-page.home-page .home-feed-tabs__item { color: #73767e !important; }
body.home-page.home-page .home-feed-tabs__item.is-active { color: #17181b !important; }
body.home-page.home-page .home-feed-tabs__item.is-active::after { background: #d21b78 !important; border-radius: 0; }
body.home-page.home-page .home-email-banner {
    display: grid !important;
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 10px;
    margin-top: 10px;
    padding: 9px 32px 9px 10px !important;
    border-bottom: 1px solid #e4e5e9 !important;
    border-radius: 0 !important;
}
body.home-page.home-page .home-email-banner::before { content: '✉'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #fbe6f1; color: #d21b78; font-size: .78rem; }
body.home-page.home-page .home-email-banner__copy strong { color: #17181b !important; font-size: .86rem; }
body.home-page.home-page .home-email-banner__copy p { color: #73767e !important; font-size: .76rem; }
body.home-page.home-page .home-email-banner__actions .btn { min-height: 32px; padding: 0 10px; border: 1px solid #ead6e9; border-radius: 7px; background: #fff; color: #8d2bb7; font-size: .75rem; }
body.home-page.home-page .home-email-banner__close { width: 25px; height: 25px; top: 7px; right: 0; border: 0; background: #ececf0; color: #777a81; }
body.home-page.home-page .social-feed-panel { gap: 0; background: #fff !important; border-radius: 12px !important; box-shadow: 0 5px 18px rgba(31,41,55,.05) !important; }
body.home-page.home-page .social-card { padding: 15px !important; gap: 12px; background: #fff !important; border: 0 !important; border-bottom: 1px solid #e4e5e9 !important; border-radius: 0 !important; box-shadow: none !important; }
body.home-page.home-page .social-card__author strong { color: #17181b !important; }
body.home-page.home-page .social-card__author div { color: #73767e !important; }
body.home-page.home-page .social-card__menu { background: #fff !important; border-color: #e1e2e6 !important; color: #656870 !important; }
body.home-page.home-page .social-card__body p { color: #41444b !important; }
body.home-page.home-page .social-card__metrics { color: #73767e !important; }
body.home-page.home-page .social-card__media--single,
body.home-page.home-page .social-card__carousel { border-radius: 10px !important; }
body.home-page.home-page .social-icon-btn { background: #fff !important; border-color: #e1e2e6 !important; color: #656870 !important; }
body.home-page.home-page .social-icon-btn--reaction.is-reacted { color: #d21b78 !important; }
body.home-page.home-page .home-bottom-nav__shell { background: rgba(13,11,24,.96) !important; border-color: rgba(255,255,255,.10) !important; box-shadow: 0 -8px 22px rgba(0,0,0,.16) !important; backdrop-filter: blur(14px) !important; }
body.home-page.home-page .home-bottom-nav__item { border-radius: 12px; }
body.home-page.home-page .home-bottom-nav__item.is-active { background: rgba(210,27,120,.16) !important; box-shadow: inset 0 0 0 1px rgba(210,27,120,.28) !important; }
@media (max-width: 760px) {
    body.home-page.home-page .social-home,
    body.home-page.home-page .home-feed-tabs,
    body.home-page.home-page .home-email-banner { width: calc(100% - 24px) !important; }
    body.home-page.home-page .social-card { padding: 14px 0 !important; }
    body.home-page.home-page .social-feed-panel { border-radius: 0 !important; box-shadow: none !important; }
    body.home-page.home-page .home-email-banner { grid-template-columns: auto minmax(0,1fr); }
    body.home-page.home-page .home-email-banner__actions { grid-column: 2; justify-content: flex-start; }
    body.home-page.home-page .home-email-banner__actions .btn { width: fit-content; }
}

/* Composer de mensagens: câmera, campo expansível e envio. */
body.messages-page.messages-page.messages-page .messages-compose {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    width: 100% !important;
}

body.messages-page.messages-page.messages-page .messages-compose__preview,
body.messages-page.messages-page.messages-page .messages-compose__error {
    flex: 0 0 100%;
}

body.messages-page.messages-page.messages-page .messages-compose__tool,
body.messages-page.messages-page.messages-page .messages-compose__send {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 34px;
}

body.messages-page.messages-page.messages-page .messages-compose textarea {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
    inline-size: 100% !important;
}

@media (max-width: 760px) {
    body.home-page.home-page .social-stories-panel {
        width: calc(100% - 24px) !important;
        margin: 14px auto 0 !important;
        padding: 12px 8px 14px !important;
    }

    body.home-page.home-page .social-stories-panel__head {
        margin-bottom: 10px;
    }

    body.home-page.home-page .story-strip--compact {
        padding-inline: 4px;
    }
}

/* Comentários no feed claro: contraste consistente e hover legível. */
body.home-page.home-page .social-comments-toggle,
body.home-page.home-page .social-comments-toggle:hover,
body.home-page.home-page .social-comments-toggle:focus-visible {
    color: #7d197f !important;
    opacity: 1 !important;
}

body.home-page.home-page .social-comments-panel {
    border-top: 1px solid #e4e5e9 !important;
    color: #303238 !important;
}

body.home-page.home-page .social-comments-panel__head {
    color: #73767e !important;
}

body.home-page.home-page .social-comments-panel__head strong,
body.home-page.home-page .social-comment-item__meta strong {
    color: #17181b !important;
}

body.home-page.home-page .social-comment-item {
    background: #fff !important;
    border: 1px solid #e4e5e9 !important;
    border-radius: 10px;
    color: #303238 !important;
}

body.home-page.home-page .social-comment-item__meta span {
    color: #73767e !important;
}

body.home-page.home-page .social-comment-item__content p {
    color: #303238 !important;
}

body.home-page.home-page .social-comment-item__delete button:hover,
body.home-page.home-page .social-comment-item__delete button:focus-visible {
    color: #b21c70 !important;
}

@media (max-width: 760px) {
    body.home-page.home-page .social-stories-panel {
        width: calc(100% - 24px) !important;
        margin: 14px auto 0 !important;
        padding: 12px 8px 14px !important;
    }

    body.home-page.home-page .social-stories-panel__head {
        margin-bottom: 10px;
    }

    body.home-page.home-page .story-strip--compact {
        padding-inline: 4px;
    }
}
/* Admin user details */
.admin-user-overview{display:flex;align-items:center;gap:18px;padding:18px;margin-bottom:16px;border:1px solid #e5e6eb;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(31,41,55,.04)}.admin-user-avatar-large{width:74px;height:74px;flex:0 0 74px;display:grid;place-items:center;overflow:hidden;border-radius:50%;background:linear-gradient(135deg,#a526e8,#e51c87);color:#fff;font-size:1.35rem;font-weight:800}.admin-user-avatar-large img{width:100%;height:100%;object-fit:cover}.admin-user-overview h2{margin:3px 0 2px;font-size:1.2rem}.admin-user-overview p{margin:0 0 8px;color:#747783}.admin-detail-grid{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(280px,.9fr);gap:16px;margin-bottom:16px}.admin-details{display:grid;grid-template-columns:1fr 1.4fr;gap:0;margin:0}.admin-details dt,.admin-details dd{padding:10px 0;border-bottom:1px solid #eff0f3}.admin-details dt{color:#747783;font-size:.82rem}.admin-details dd{margin:0;color:#25262b;font-weight:600}.admin-user-actions{display:flex;flex-wrap:wrap;gap:8px}.admin-user-post{display:flex;justify-content:space-between;gap:12px;padding:11px 0;border-top:1px solid #eff0f3}.admin-user-post strong{max-width:70%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.admin-user-post small{color:#747783;white-space:nowrap}
@media (max-width:760px){.admin-detail-grid{grid-template-columns:1fr;gap:10px}.admin-user-overview{padding:14px}.admin-details{grid-template-columns:1fr 1fr}}
.admin-muted{margin:4px 0 0;color:#747783;font-size:.82rem}.admin-conversation-list{display:grid;gap:0}.admin-conversation-list>div{display:flex;align-items:center;gap:14px;padding:13px 0;border-top:1px solid #eff0f3}.admin-conversation-list>div>div{min-width:0;flex:1}.admin-conversation-list small{display:block;color:#747783;margin-top:3px}.admin-conversation-list>div>span{color:#747783;font-size:.78rem;white-space:nowrap}.admin-moderation-gate{max-width:620px;margin-top:16px}.admin-moderation-gate p{color:#62656f}.admin-moderation-gate textarea{display:block;width:100%;min-height:100px;margin:14px 0;padding:12px;border:1px solid #dfe1e7;border-radius:8px;resize:vertical;font:inherit}.admin-conversation-participants{display:flex;flex-wrap:wrap;gap:8px}.admin-conversation-participants span{padding:7px 10px;border-radius:99px;background:#f1eaff;color:#713d91;font-size:.82rem;font-weight:700}.admin-readonly-chat{max-width:760px;margin-top:16px}.admin-chat-messages{display:grid;gap:10px}.admin-chat-message{max-width:78%;padding:11px 13px;border:1px solid #e5e6eb;border-radius:10px;background:#fafafd}.admin-chat-message:nth-child(even){margin-left:auto;background:#f8eef8}.admin-chat-message>div{display:flex;justify-content:space-between;gap:14px;margin-bottom:5px}.admin-chat-message small{color:#747783;font-size:.72rem;white-space:nowrap}.admin-chat-message p{margin:0;color:#282930;line-height:1.5;overflow-wrap:anywhere}.admin-chat-message.is-reported{border:2px solid #d52289;box-shadow:0 0 0 3px #f8d7ec}.admin-reported-label{display:inline-block;margin-bottom:6px;color:#bd1c70;font-size:.72rem;font-weight:800}.admin-moderation-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.admin-moderation-links .admin-panel__head{width:100%;margin-bottom:2px}
.admin-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.admin-plan-card{display:flex;flex-direction:column;gap:10px;padding:18px;border:1px solid #e6e5ed;border-radius:16px;background:#fff}.admin-plan-card h3{margin:0;font-size:1.15rem}.admin-plan-card>p{margin:0 0 4px;color:#6b7280;font-size:.86rem}.admin-plan-card label{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:8px;align-items:center;font-size:.84rem;color:#374151}.admin-plan-card input{width:100%;min-width:0;padding:8px 9px;border:1px solid #dddde6;border-radius:8px;background:#fff}.admin-plan-card label small{grid-column:2;color:#8b8d98;font-size:.68rem;margin-top:-7px}.admin-plan-card .admin-button{margin-top:auto;align-self:stretch}@media (max-width:900px){.admin-plan-grid{grid-template-columns:1fr 1fr}}@media (max-width:600px){.admin-plan-grid{grid-template-columns:1fr}}
.admin-content:has(+ .admin-plans-redesign) > .admin-panel:first-of-type{display:none}.admin-plans-redesign{max-width:1180px;margin:0 auto;padding:0 30px 110px;color:#25262b}.admin-plans-hero{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin:0 0 22px}.admin-plans-hero h2{margin:5px 0;font-size:2.35rem;letter-spacing:-.04em}.admin-plans-hero p{margin:0;color:#717582}.admin-plans-info{display:grid;gap:4px;min-width:250px;padding:15px 18px;border:1px solid #e5d9f2;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(55,25,84,.06);font-size:.78rem;color:#737783}.admin-plans-info strong{color:#4a176b;font-size:.9rem}.admin-plans-metrics{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:20px}.admin-plans-metrics>div{padding:13px 15px;border:1px solid #e8e8ee;border-radius:13px;background:#fff}.admin-plans-metrics strong{display:block;font-size:1.25rem;color:#321344}.admin-plans-metrics span{display:block;margin-top:3px;color:#7b7f89;font-size:.72rem}.admin-plans-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.admin-plan-premium-card{display:flex;flex-direction:column;min-width:0;padding:22px;border:1px solid #e3d9eb;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(43,22,58,.08);transition:transform .2s,box-shadow .2s}.admin-plan-premium-card:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(43,22,58,.13)}.admin-plan-premium-card.is-plus{border-color:#9e6bc4;box-shadow:0 12px 30px rgba(126,57,173,.16)}.admin-plan-premium-card.is-premium{border-color:#d0319b;background:linear-gradient(145deg,#351448,#8c1b79 58%,#d12a83);color:#fff;box-shadow:0 16px 34px rgba(161,32,129,.25)}.admin-plan-card-head{display:flex;align-items:center;gap:12px}.admin-plan-card-head h3{margin:4px 0 0;font-size:1.45rem}.admin-plan-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:#f2e9f7;color:#9823ae;font-size:1.45rem}.is-plus .admin-plan-icon{background:#eadbfa}.is-premium .admin-plan-icon{background:rgba(255,255,255,.18);color:#fff}.admin-plan-badge{display:inline-flex;padding:4px 8px;border-radius:99px;background:#f3e8f8;color:#74227e;font-size:.68rem;font-weight:800}.is-premium .admin-plan-badge{background:rgba(255,255,255,.18);color:#fff}.admin-plan-description{min-height:38px;margin:15px 0 10px;color:#717582;font-size:.84rem;line-height:1.45}.is-premium .admin-plan-description{color:#f4dfef}.admin-plan-users{display:flex;justify-content:space-between;padding:11px 0;border-top:1px solid #eeeaf1;border-bottom:1px solid #eeeaf1;color:#727681;font-size:.76rem}.admin-plan-users strong{color:#351446;font-size:1rem}.is-premium .admin-plan-users{border-color:rgba(255,255,255,.2);color:#f2dcec}.is-premium .admin-plan-users strong{color:#fff}.admin-plan-summary{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:16px 0}.admin-plan-summary span{display:grid;gap:3px;padding:9px 10px;border-radius:10px;background:#faf8fc}.admin-plan-summary small{color:#7c7e87;font-size:.68rem}.admin-plan-summary strong{color:#3b154c;font-size:.75rem}.is-premium .admin-plan-summary span{background:rgba(255,255,255,.11)}.is-premium .admin-plan-summary small,.is-premium .admin-plan-summary strong{color:#fff}.admin-plan-expand{display:flex;justify-content:space-between;width:100%;padding:11px 0;border:0;border-top:1px solid #eeeaf1;background:transparent;color:#8f1ea6;font:inherit;font-weight:800;cursor:pointer}.is-premium .admin-plan-expand{border-color:rgba(255,255,255,.2);color:#fff}.admin-plan-editor{display:grid;grid-template-rows:0fr;overflow:hidden;opacity:0;transition:grid-template-rows .25s,opacity .2s}.is-expanded .admin-plan-editor{grid-template-rows:1fr;opacity:1}.admin-plan-editor>fieldset{min-height:0;margin:0;padding:0;border:0}.is-expanded .admin-plan-editor>fieldset{padding:9px 0}.admin-plan-editor legend{padding:0 0 7px;color:#56206a;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.is-premium .admin-plan-editor legend{color:#f5dff0}.admin-plan-limit-row{display:grid;grid-template-columns:minmax(0,1fr) 72px;gap:6px;align-items:center;padding:7px 0;border-bottom:1px solid #f0edf3;font-size:.76rem}.is-premium .admin-plan-limit-row{border-color:rgba(255,255,255,.16)}.admin-plan-limit-row input[type=number]{width:100%;min-width:0;padding:6px;border:1px solid #ded6e5;border-radius:7px;background:#fff;color:#28252c}.admin-unlimited-toggle{grid-column:1/-1;color:#777b86;font-size:.68rem}.admin-unlimited-toggle input{accent-color:#b31bb1}.is-premium .admin-unlimited-toggle{color:#f1dcea}.admin-plan-actions{display:flex;gap:8px;margin-top:16px}.admin-plan-actions .admin-button{flex:1}.admin-plan-reset{background:transparent!important;color:#7d3b91!important;border:1px solid #dfcfea!important}.is-premium .admin-plan-reset{color:#fff!important;border-color:rgba(255,255,255,.4)!important}.admin-plan-savebar{position:fixed;z-index:20;right:30px;bottom:18px;display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid #dcc9e8;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 10px 28px rgba(45,19,61,.18);transform:translateY(140%);transition:transform .25s}.admin-plan-savebar.is-visible{transform:translateY(0)}.admin-plan-savebar span{font-size:.78rem;color:#5e626d}@media(max-width:1050px){.admin-plans-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-plans-metrics{grid-template-columns:repeat(3,1fr)}}@media(max-width:650px){.admin-plans-redesign{padding:0 14px 120px}.admin-plans-hero{display:grid;gap:14px}.admin-plans-hero h2{font-size:1.9rem}.admin-plans-info{min-width:0}.admin-plans-metrics{grid-template-columns:repeat(2,1fr)}.admin-plans-grid{grid-template-columns:1fr}.admin-plan-premium-card{padding:18px}.admin-plan-savebar{right:12px;left:12px;justify-content:flex-end}.admin-plan-savebar span{margin-right:auto}.admin-plan-savebar .admin-button{padding-inline:10px}}
body:has(.admin-plans-redesign) .admin-shell .admin-content > section.admin-panel:first-of-type{display:none}
body:has(.admin-plans-redesign) .admin-page-head{display:none}.admin-plan-editor{display:block;max-height:0;overflow:hidden;opacity:0;transition:max-height .28s ease,opacity .2s ease}.is-expanded .admin-plan-editor{max-height:900px;opacity:1}.admin-plan-editor>fieldset{display:block}.admin-plan-limit-row>span:first-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Planos: apresentação administrativa sóbria */
.admin-plans-redesign{max-width:1220px;padding:0 32px 90px;background:#f7f8fa}.admin-plans-hero{align-items:flex-start;margin-bottom:18px}.admin-plans-hero h2{font-size:2rem;font-weight:700;letter-spacing:-.025em}.admin-plans-hero p{font-size:.92rem}.admin-plans-info{min-width:220px;padding:12px 15px;border:1px solid #e2e4e8;border-radius:10px;box-shadow:none;background:#fff}.admin-plans-info strong{color:#25262b;font-size:.82rem}.admin-plans-info span{font-size:.73rem}.admin-plans-metrics{grid-template-columns:repeat(4,1fr);gap:10px;margin-bottom:18px}.admin-plans-metrics>div{padding:11px 13px;border:1px solid #e1e3e7;border-radius:10px;box-shadow:none}.admin-plans-metrics strong{font-size:1.1rem;color:#25262b}.admin-plans-metrics span{font-size:.7rem}
.admin-plans-grid{align-items:stretch;gap:14px}.admin-plan-premium-card,.admin-plan-premium-card.is-plus,.admin-plan-premium-card.is-premium{padding:18px;border:1px solid #dfe2e7;border-radius:12px;background:#fff;color:#25262b;box-shadow:none;transform:none;transition:border-color .18s,box-shadow .18s}.admin-plan-premium-card:hover,.admin-plan-premium-card.is-plus:hover,.admin-plan-premium-card.is-premium:hover{transform:none;box-shadow:0 5px 14px rgba(32,39,52,.07)}.admin-plan-premium-card.is-plus{border-top:2px solid #a24bbd}.admin-plan-premium-card.is-premium{border-top:2px solid #d02b91}.admin-plan-icon,.is-plus .admin-plan-icon,.is-premium .admin-plan-icon{width:28px;height:28px;border-radius:7px;background:#f1f2f4;color:#555b66;font-size:.9rem}.admin-plan-card-head{gap:9px}.admin-plan-card-head h3{margin:0;font-size:1.2rem;font-weight:700}.admin-plan-badge{display:none}.admin-plan-description{min-height:34px;margin:8px 0 10px;color:#69707b;font-size:.78rem}.admin-plan-users{padding:9px 0;border-color:#e7e9ed;font-size:.73rem}.admin-plan-users strong{color:#25262b;font-size:.9rem}.admin-plan-summary{display:block;margin:9px 0}.admin-plan-summary span{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-radius:0;border-bottom:1px solid #edf0f2;background:transparent}.admin-plan-summary span:last-child{border-bottom:0}.admin-plan-summary small{font-size:.72rem;color:#66707b}.admin-plan-summary strong{font-size:.74rem;color:#25262b;font-weight:600}.is-premium .admin-plan-summary span{background:transparent}.is-premium .admin-plan-summary small,.is-premium .admin-plan-summary strong{color:#25262b}.admin-plan-expand{padding:10px 0;border-color:#e5e7eb;color:#7c258f;font-size:.8rem}.is-premium .admin-plan-expand{border-color:#e5e7eb;color:#7c258f}.admin-plan-actions{gap:7px;margin-top:12px}.admin-plan-actions .admin-button{font-size:.76rem;padding:8px 10px}.admin-plan-reset{color:#5f6670!important;border-color:#d9dde2!important}.is-premium .admin-plan-reset{color:#5f6670!important;border-color:#d9dde2!important}.admin-plan-editor legend{font-size:.66rem;color:#6d7380}.is-premium .admin-plan-editor legend{color:#6d7380}.admin-plan-limit-row{padding:6px 0;font-size:.72rem}.admin-plan-limit-row input[type=number]{padding:5px;border-radius:6px}.admin-unlimited-toggle{font-size:.66rem;color:#727985}.is-premium .admin-unlimited-toggle{color:#727985}.admin-plan-savebar{right:24px;bottom:16px;border-radius:10px;box-shadow:0 5px 16px rgba(32,39,52,.14)}
@media(max-width:1050px){.admin-plans-metrics{grid-template-columns:repeat(4,1fr)}}@media(max-width:650px){.admin-plans-redesign{padding:0 14px 105px}.admin-plans-hero h2{font-size:1.75rem}.admin-plans-info{min-width:0}.admin-plans-metrics{grid-template-columns:repeat(2,1fr)}.admin-plan-premium-card,.admin-plan-premium-card.is-plus,.admin-plan-premium-card.is-premium{border-radius:10px}}
.admin-page .admin-nav a[href*="section=profiles"]{display:none!important}
/* Home pública: contraste e ritmo visual */
body.home-page:not(.is-authenticated){background:#f5f6f8!important;color:#25262b}.home-aurora{display:none}.home-topbar{background:#11101a!important;border-bottom:1px solid #292633;box-shadow:none}.home-topbar-inner{min-height:70px}.home-hero{max-width:1180px;margin:0 auto;padding:42px 30px 44px;background:#171522;border-radius:0 0 18px 18px;color:#fff}.home-hero-copy{padding:8px 0;max-width:680px}.home-hero-copy h1{max-width:12ch;margin:14px 0 12px;font-size:clamp(2.7rem,5vw,4.7rem);line-height:.98}.hero-text{max-width:58ch;font-size:.98rem;line-height:1.55;color:#d6d3dc!important}.hero-kicker,.section-tag{padding:5px 9px;border:0;border-radius:5px;background:#292237!important;color:#e7b9da!important;font-size:.68rem;letter-spacing:.08em}.signup-card{padding:22px;border-radius:14px;background:#fff!important;border:1px solid #e1e3e8!important;box-shadow:0 10px 25px rgba(15,18,28,.16)!important;color:#25262b!important}.signup-card h2{margin:10px 0 8px;font-size:1.45rem;line-height:1.15;color:#25262b!important}.signup-card p{margin-bottom:14px;color:#656b76!important;line-height:1.45}.signup-card-top .pill-home{background:#f6eef7!important;border:1px solid #ead7ee!important;color:#762b86!important}.signup-form label{gap:6px;color:#3c424c!important}.signup-form select{padding:11px 12px;border:1px solid #d9dce2;border-radius:8px;background:#fff;color:#30343c}.signup-link{margin-top:11px;color:#7d2392!important}.home-feature-slab{padding:48px 0 46px;background:#f8f9fb!important;color:#25262b!important}.home-feature-slab::before{display:none}.feature-intro{max-width:650px;margin:0 auto 22px}.feature-intro h2,.proof-copy h2,.cta-card h2{margin:10px 0 9px;font-size:clamp(1.75rem,3vw,2.45rem);line-height:1.08;color:#20242b!important}.feature-intro p,.feature-card p,.proof-copy p,.cta-card p{color:#626975!important;line-height:1.5}.feature-grid{gap:12px}.feature-card{padding:18px;border-radius:10px;background:#fff!important;border:1px solid #e1e4e9!important;box-shadow:none!important}.feature-icon{width:34px;height:34px;margin-bottom:11px;border-radius:8px;background:#f3e8f5!important;color:#8d299f!important}.feature-card h3{margin:0 0 6px;font-size:1rem;color:#252a32!important}.feature-card p{font-size:.86rem}.home-proof{gap:26px;padding:50px 30px 54px;background:#f5f6f8;color:#25262b}.proof-visual{min-height:350px;border-radius:14px;background:#21162d!important;border:1px solid #352541!important;box-shadow:none!important}.proof-panel{gap:9px;padding:20px}.proof-card{padding:14px 15px;border-radius:9px;background:#fff!important;border:1px solid #ece8ef!important;color:#25262b!important}.proof-card strong{margin-bottom:4px;font-size:.92rem;color:#25262b!important}.proof-card p{font-size:.82rem;color:#626975!important;line-height:1.45}.proof-copy{color:#25262b!important}.proof-copy p{color:#626975!important}.mini-pill{padding:7px 10px;border-radius:6px;background:#fff!important;border:1px solid #dfe2e7!important;color:#555c66!important;font-size:.78rem}.tag-cloud{gap:7px;margin-top:16px}.home-cta{padding:0 30px 48px}.cta-card{padding:22px 24px;border-radius:12px;background:#fff!important;border:1px solid #e1e4e9!important;box-shadow:none!important}.cta-card p{font-size:.86rem}.cta-actions{gap:8px}.home-footer{padding:24px 0;background:#171522!important;border-top:1px solid #2b2734}.home-footer p{margin-top:5px;color:#c7c3cf!important;font-size:.82rem}.home-footer-links{gap:12px}.home-footer-links a{color:#ded9e3!important;font-size:.84rem}
@media(max-width:760px){.home-hero{display:grid;gap:22px;padding:28px 16px 30px;border-radius:0}.home-hero-copy h1{font-size:clamp(2.25rem,11vw,3.25rem)}.hero-text{font-size:.9rem}.signup-card{padding:18px}.home-feature-slab{padding:34px 0}.feature-intro{text-align:left;margin:0 16px 18px}.feature-grid{grid-template-columns:1fr;margin:0 16px}.feature-card{padding:15px}.home-proof{grid-template-columns:1fr;gap:22px;padding:36px 16px 40px}.proof-visual{min-height:0}.proof-panel{padding:15px}.home-cta{padding:0 16px 36px}.cta-card{display:grid;gap:14px;padding:18px}.cta-actions{display:grid;grid-template-columns:1fr 1fr}.cta-actions .btn{width:100%;padding-inline:10px}.home-footer{padding:22px 16px}.home-footer-inner{align-items:flex-start;gap:12px}}
.home-page .signup-form label>span{color:#3a3f48!important;font-weight:700;opacity:1}.home-page .signup-form select{width:100%;min-height:44px;padding:10px 12px;background-color:#fff!important;color:#252a32!important;border:1px solid #c9b2d7;border-radius:8px;box-shadow:none;opacity:1;color-scheme:light}.home-page .signup-form select:focus{border-color:#9224b0!important;outline:2px solid rgba(146,36,176,.18);outline-offset:1px}.home-page .signup-form select:disabled{background:#f3f4f6!important;color:#555d68!important;opacity:1}.home-page .signup-form select option{background:#fff!important;color:#252a32!important;font-weight:500}.home-page .signup-form select option:checked,.home-page .signup-form select option:hover{background:#eadcf3!important;color:#34203d!important}.home-page .signup-form select option:disabled{background:#fff!important;color:#69717c!important}

/* Home pública: primeira dobra compacta no mobile */
@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) .topbar-guest .topbar-inner {
        min-height: 0;
        padding: 10px 16px 12px;
        gap: 8px;
    }

    body.home-page:not(.is-authenticated) .topbar-guest .brand {
        gap: 10px;
    }

    body.home-page:not(.is-authenticated) .topbar-guest .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    body.home-page:not(.is-authenticated) .topbar-guest-actions {
        gap: 8px;
    }

    body.home-page:not(.is-authenticated) .topbar-guest-actions .btn {
        min-height: 40px;
        padding: 0 15px;
    }

    body.home-page:not(.is-authenticated) .home-main {
        padding-top: 16px !important;
    }

    body.home-page:not(.is-authenticated) .home-hero {
        width: calc(100% - 32px);
        box-sizing: border-box;
        gap: 14px;
        margin: 0 auto;
        padding: 22px 16px 24px;
        border-radius: 14px;
    }

    body.home-page:not(.is-authenticated) .home-hero-copy {
        padding: 0;
    }

    body.home-page:not(.is-authenticated) .home-hero-copy h1 {
        margin: 12px 0 9px;
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: .99;
    }

    body.home-page:not(.is-authenticated) .hero-text {
        margin: 0;
        font-size: .88rem;
        line-height: 1.45;
    }

    body.home-page:not(.is-authenticated) .signup-card {
        padding: 16px;
        border-radius: 12px;
        box-shadow: none !important;
    }

    body.home-page:not(.is-authenticated) .signup-card-top {
        gap: 6px;
    }

    body.home-page:not(.is-authenticated) .signup-card h2 {
        margin: 9px 0 5px;
        font-size: 1.3rem;
    }

    body.home-page:not(.is-authenticated) .signup-card p {
        margin: 0 0 11px;
        font-size: .9rem;
    }

    body.home-page:not(.is-authenticated) .signup-form {
        gap: 9px;
    }

    body.home-page:not(.is-authenticated) .signup-form select {
        min-height: 42px;
        padding: 9px 11px;
    }

    body.home-page:not(.is-authenticated) .signup-form .btn {
        min-height: 44px;
    }

    body.home-page:not(.is-authenticated) .signup-link {
        margin-top: 8px;
    }
}

/* Home pública: footer mobile segue o fluxo natural da página */
@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) {
        background-color: #171522 !important;
    }

    body.home-page:not(.is-authenticated) .home-main {
        min-height: 0;
        margin-bottom: 0;
        padding-bottom: 0 !important;
    }

    body.home-page:not(.is-authenticated) .home-cta {
        margin-bottom: 0;
        padding-bottom: 24px;
    }

    body.home-page:not(.is-authenticated) .home-footer {
        margin: 0;
        padding: 20px 16px 22px;
    }

    body.home-page:not(.is-authenticated) .home-footer-inner {
        gap: 10px;
    }

    body.home-page:not(.is-authenticated) .home-footer p {
        margin: 4px 0 0;
        line-height: 1.4;
    }
}

/* Home pública: acabamento visual responsivo */
body.home-page:not(.is-authenticated) .home-hero,
body.home-page:not(.is-authenticated) .home-feature-slab,
body.home-page:not(.is-authenticated) .home-proof,
body.home-page:not(.is-authenticated) .home-cta {
    position: relative;
}

body.home-page:not(.is-authenticated) .feature-card,
body.home-page:not(.is-authenticated) .cta-card {
    box-shadow: none !important;
}

body.home-page:not(.is-authenticated) .feature-card {
    background: #fcfcfd !important;
}

body.home-page:not(.is-authenticated) .cta-card {
    background: #fbf9fc !important;
}

@media (min-width: 430px) and (max-width: 760px) {
    body.home-page:not(.is-authenticated) .topbar-guest .topbar-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    body.home-page:not(.is-authenticated) .topbar-guest .brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    body.home-page:not(.is-authenticated) .topbar-guest-actions {
        flex: 0 0 auto;
    }

    body.home-page:not(.is-authenticated) .topbar-guest-actions .btn {
        padding-inline: 13px;
    }
}

@media (max-width: 429px) {
    body.home-page:not(.is-authenticated) .topbar-guest .topbar-inner {
        gap: 7px;
        padding-block: 9px 10px;
    }

    body.home-page:not(.is-authenticated) .topbar-guest-actions .btn {
        min-height: 38px;
        padding-inline: 12px;
    }
}

@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) .home-hero {
        gap: 12px;
        padding: 20px 16px 22px;
    }

    body.home-page:not(.is-authenticated) .home-hero-copy h1 {
        margin: 10px 0 8px;
        font-size: clamp(2rem, 8.5vw, 2.65rem);
        line-height: 1;
        letter-spacing: -.035em;
    }

    body.home-page:not(.is-authenticated) .hero-text {
        font-size: .86rem;
        line-height: 1.42;
    }

    body.home-page:not(.is-authenticated) .signup-card {
        padding: 15px;
        border-radius: 10px;
        background: #faf9fb !important;
    }

    body.home-page:not(.is-authenticated) .signup-card-top .pill-home {
        padding: 6px 10px;
    }

    body.home-page:not(.is-authenticated) .home-feature-slab {
        padding: 28px 0 30px;
    }

    body.home-page:not(.is-authenticated) .feature-intro {
        margin: 0 16px 14px;
    }

    body.home-page:not(.is-authenticated) .feature-intro h2 {
        margin: 8px 0 7px;
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.08;
    }

    body.home-page:not(.is-authenticated) .feature-intro p {
        font-size: .86rem;
        line-height: 1.45;
    }

    body.home-page:not(.is-authenticated) .feature-grid {
        gap: 9px;
    }

    body.home-page:not(.is-authenticated) .feature-card {
        padding: 13px 14px;
        border-radius: 9px;
    }

    body.home-page:not(.is-authenticated) .feature-icon {
        width: 30px;
        height: 30px;
        margin-bottom: 8px;
    }

    body.home-page:not(.is-authenticated) .feature-card h3 {
        margin-bottom: 4px;
    }

    body.home-page:not(.is-authenticated) .feature-card p {
        line-height: 1.4;
    }

    body.home-page:not(.is-authenticated) .home-proof {
        gap: 16px;
        padding: 28px 16px 30px;
    }

    body.home-page:not(.is-authenticated) .proof-visual {
        border-radius: 12px;
    }

    body.home-page:not(.is-authenticated) .proof-panel {
        gap: 8px;
        padding: 13px;
    }

    body.home-page:not(.is-authenticated) .proof-card {
        padding: 12px 13px;
        border-radius: 8px;
    }

    body.home-page:not(.is-authenticated) .proof-copy h2 {
        margin: 8px 0 7px;
        font-size: clamp(1.55rem, 7vw, 2rem);
        line-height: 1.08;
    }

    body.home-page:not(.is-authenticated) .proof-copy p {
        font-size: .86rem;
        line-height: 1.45;
    }

    body.home-page:not(.is-authenticated) .tag-cloud {
        gap: 6px;
        margin-top: 12px;
    }

    body.home-page:not(.is-authenticated) .mini-pill {
        padding: 6px 9px;
        font-size: .74rem;
    }

    body.home-page:not(.is-authenticated) .home-cta {
        padding-bottom: 24px;
    }

    body.home-page:not(.is-authenticated) .cta-card {
        gap: 12px;
        padding: 17px 16px;
        border-radius: 10px;
    }

    body.home-page:not(.is-authenticated) .cta-card h2 {
        margin: 8px 0 6px;
        font-size: clamp(1.5rem, 7vw, 1.95rem);
        line-height: 1.08;
    }

    body.home-page:not(.is-authenticated) .cta-card p {
        line-height: 1.4;
    }

    body.home-page:not(.is-authenticated) .home-footer {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Home pública: separar visualmente as três últimas áreas no mobile */
@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) .home-proof {
        margin-bottom: 0;
        padding-bottom: 36px;
        border-bottom: 1px solid #e2e4e8;
    }

    body.home-page:not(.is-authenticated) .home-cta {
        width: 100%;
        max-width: none;
        box-sizing: border-box;
        margin: 0;
        padding: 22px 16px 28px;
        background: #eef0f4;
        border-bottom: 1px solid #dfe2e7;
    }

    body.home-page:not(.is-authenticated) .home-cta .cta-card {
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        border-color: #dfe2e7 !important;
    }

    body.home-page:not(.is-authenticated) .home-footer {
        margin-top: 8px;
        padding: 26px 16px 22px;
        border-top: 1px solid #302c3a;
    }

    body.home-page:not(.is-authenticated) .home-footer-inner {
        display: grid;
        gap: 14px;
    }

    body.home-page:not(.is-authenticated) .home-footer-links {
        gap: 12px 16px;
    }
}

/* CTA final sem ações duplicadas */
body.home-page:not(.is-authenticated) .home-cta .cta-card {
    min-height: 0;
}

@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) .home-cta {
        padding-top: 18px;
        padding-bottom: 20px;
    }

    body.home-page:not(.is-authenticated) .home-cta .cta-card {
        padding: 15px 16px;
    }
}
.register-choice-shell{width:min(880px,calc(100% - 32px));margin:42px auto 56px;padding:30px 34px;border-radius:18px;align-items:center;gap:34px}.register-choice-shell .form-copy{min-width:0}.register-choice-shell .form-copy h1{max-width:none;margin:12px 0 10px;font-size:clamp(2.65rem,5vw,3.5rem);line-height:1.02;letter-spacing:-.045em}.register-choice-shell .form-copy p{max-width:42ch;line-height:1.5}.register-choice-form{gap:14px}.register-choice-form label{gap:7px}.register-choice-form select{height:52px;padding:0 14px;border-radius:10px}.register-choice-form .btn{min-height:50px;padding:0 22px;font-size:.95rem;border-radius:10px}.register-choice-form .alert{margin:0}.register-choice-shell .pill{font-size:.78rem;padding:7px 11px}@media(max-width:760px){.register-choice-shell{width:calc(100% - 24px);margin:24px auto 34px;padding:22px 18px;display:block}.register-choice-shell .form-copy h1{font-size:clamp(2.25rem,10vw,3rem);line-height:1.04;margin:10px 0 8px}.register-choice-shell .form-copy p{font-size:.9rem;margin-bottom:20px}.register-choice-form{display:grid;gap:12px}.register-choice-form select{height:50px}.register-choice-form .btn{min-height:48px}}
.register-choice-form label{color:#f5f3f8!important;font-weight:700;opacity:1}.register-choice-form select,.register-choice-form select:focus,.register-choice-form select:active{background-color:#fff!important;color:#252a32!important;opacity:1;border-color:#a348c2}.register-choice-form select:focus{outline:2px solid rgba(163,72,194,.28);outline-offset:1px}.register-choice-form select:disabled{background-color:#f3f4f6!important;color:#505864!important;opacity:1}.register-choice-form select option{background:#fff!important;color:#252a32!important;opacity:1;font-weight:500}.register-choice-form select option:checked{background:#eadcf3!important;color:#34203d!important}.register-choice-form select option:hover{background:#f0e4f6!important;color:#34203d!important}

body.home-page:not(.is-authenticated) .home-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    column-gap: 28px;
    row-gap: 16px;
}

body.home-page:not(.is-authenticated) .home-footer-bottom {
    grid-column: 1 / -1;
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 14px 0 3px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .62);
    text-align: center;
    font-size: 13px;
}

body.home-page:not(.is-authenticated) .home-footer-bottom small {
    font-size: inherit;
}

@media (max-width: 760px) {
    body.home-page:not(.is-authenticated) .home-footer-inner {
        gap: 14px;
    }

    body.home-page:not(.is-authenticated) .home-footer-links {
        padding-bottom: 1px;
    }

    body.home-page:not(.is-authenticated) .home-footer-bottom {
        gap: 5px;
        padding: 14px 0 3px;
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Perfil social: apresentação pública e própria */
body.profile-view-page .profile-shell {
    width: min(100% - 32px, 900px);
    margin: 0 auto;
    padding-top: 18px;
    padding-bottom: 40px;
    gap: 14px;
}

body.profile-view-page .profile-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 42px;
}

body.profile-view-page .profile-card {
    gap: 0;
    padding: 0;
    overflow: hidden;
    border-radius: 18px;
    background: #111225;
    border-color: rgba(168, 85, 247, .22);
}

body.profile-view-page .profile-cover {
    position: relative;
    min-height: 190px;
    background: radial-gradient(circle at 25% 20%, rgba(168, 85, 247, .32), transparent 38%), linear-gradient(135deg, #27143b, #101225 68%, #36122f);
    background-size: cover;
    background-position: center;
}

body.profile-view-page .profile-cover::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(10, 11, 25, .48));
    pointer-events: none;
}

body.profile-view-page .profile-cover__edit {
    position: absolute;
    z-index: 1;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 8px;
    background: rgba(10, 11, 25, .62);
    color: #fff;
    font-size: .74rem;
}

body.profile-view-page .profile-card__hero {
    position: relative;
    margin-top: -58px;
    padding: 0 22px 18px;
    align-items: end;
    z-index: 2;
}

body.profile-view-page .profile-card__avatar {
    width: 116px;
    height: 116px;
    border: 4px solid #111225;
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .24);
}

body.profile-view-page .profile-avatar__edit {
    position: absolute;
    left: 88px;
    bottom: 4px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 2px solid #111225;
    border-radius: 50%;
    background: #a21caf;
    color: #fff;
    font-size: .78rem;
}

body.profile-view-page .profile-avatar__edit svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

body.profile-view-page .profile-card__copy {
    padding-bottom: 4px;
}

body.profile-view-page .profile-card__title-line strong {
    font-size: 1.35rem;
}

body.profile-view-page .profile-card__username {
    color: #d8b4fe;
    font-size: .82rem;
}

body.profile-view-page .profile-card__bio,
body.profile-view-page .profile-stats,
body.profile-view-page .profile-tabs,
body.profile-view-page .profile-about,
body.profile-view-page .profile-posts,
body.profile-view-page .profile-card__gallery {
    margin-inline: 22px;
}

body.profile-view-page .profile-card__bio {
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    color: #d8d9e5;
    line-height: 1.6;
}

body.profile-view-page .profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 13px 0;
    border-top: 1px solid rgba(255, 255, 255, .09);
    border-bottom: 1px solid rgba(255, 255, 255, .09);
    text-align: center;
}

body.profile-view-page .profile-stats span {
    display: grid;
    gap: 3px;
}

body.profile-view-page .profile-stats strong { color: #fff; font-size: 1rem; }
body.profile-view-page .profile-stats small { color: #aaaec2; font-size: .7rem; }

body.profile-view-page .profile-tabs {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    scrollbar-width: none;
}

body.profile-view-page .profile-tabs a {
    position: relative;
    flex: 0 0 auto;
    padding: 14px 0 11px;
    color: #aaaec2;
    font-size: .82rem;
    font-weight: 700;
}

body.profile-view-page .profile-tabs a.is-active { color: #fff; }
body.profile-view-page .profile-tabs a.is-active::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    background: #d52b9a;
}

body.profile-view-page .profile-about,
body.profile-view-page .profile-posts {
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .09);
}

body.profile-view-page .profile-about h2,
body.profile-view-page .profile-posts h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 1rem;
}

body.profile-view-page .profile-about dl { display: grid; gap: 8px; margin: 0; }
body.profile-view-page .profile-about dl div { display: flex; justify-content: space-between; gap: 16px; }
body.profile-view-page .profile-about dt { color: #969bb3; font-size: .78rem; }
body.profile-view-page .profile-about dd { margin: 0; color: #e5e7ef; font-size: .82rem; text-align: right; }

body.profile-view-page .profile-post { padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
body.profile-view-page .profile-post p { margin: 0 0 7px; color: #e5e7ef; line-height: 1.5; white-space: pre-wrap; }
body.profile-view-page .profile-post time { color: #9297ad; font-size: .72rem; }

body.profile-view-page .profile-card__gallery { padding: 17px 0 22px; }

@media (max-width: 760px) {
    body.profile-view-page .profile-shell {
        width: 100%;
        padding-top: 8px;
        padding-bottom: 24px;
    }

    body.profile-view-page .profile-head {
        width: calc(100% - 24px);
        margin: 0 auto;
    }

    body.profile-view-page .profile-cover { min-height: 150px; }
    body.profile-view-page .profile-card { border-radius: 14px; }
    body.profile-view-page .profile-card__hero { grid-template-columns: auto minmax(0, 1fr); gap: 11px; padding: 0 16px 15px; }
    body.profile-view-page .profile-card__avatar { width: 88px; height: 88px; }
    body.profile-view-page .profile-avatar__edit { left: 65px; bottom: 3px; }
    body.profile-view-page .profile-card__title-line strong { font-size: 1.08rem; }
    body.profile-view-page .profile-card__bio,
    body.profile-view-page .profile-stats,
    body.profile-view-page .profile-tabs,
    body.profile-view-page .profile-about,
    body.profile-view-page .profile-posts,
    body.profile-view-page .profile-card__gallery { margin-inline: 16px; }
    body.profile-view-page .profile-stats { grid-template-columns: repeat(4, 1fr); }
    body.profile-view-page .profile-tabs { gap: 20px; }
}

body.profile-view-page .profile-tab-panel[hidden] {
    display: none !important;
}

body.profile-view-page .profile-tab-panel {
    animation: profile-panel-in .18s ease both;
}

@keyframes profile-panel-in {
    from { opacity: .35; transform: translateY(3px); }
    to { opacity: 1; transform: translateY(0); }
}

body.profile-view-page .profile-gallery-panel,
body.profile-view-page .profile-videos-panel {
    padding: 17px 0 22px;
    margin-inline: 22px;
}

body.profile-view-page .profile-gallery-panel .profile-card__gallery {
    margin-inline: 0;
    padding: 0;
}

body.profile-view-page .profile-gallery-panel .profile-card__photo {
    min-height: 150px;
}

body.profile-view-page .profile-about__bio {
    margin: 0 0 14px;
    color: #d8d9e5;
    line-height: 1.6;
}

body.profile-view-page .profile-video-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

body.profile-view-page .profile-video-grid video {
    display: block;
    width: 100%;
    max-height: 360px;
    border-radius: 10px;
    background: #080914;
}

@media (max-width: 760px) {
    body.profile-view-page .profile-gallery-panel,
    body.profile-view-page .profile-videos-panel { margin-inline: 16px; }
    body.profile-view-page .profile-gallery-panel .profile-card__photo { min-height: 120px; }
    body.profile-view-page .profile-video-grid { grid-template-columns: 1fr; }
}

/* Perfil social: uploads compactos, composição e mídia das publicações. */
body.profile-view-page .profile-media-upload { margin: 0; }
body.profile-view-page .profile-media-upload input[type="file"] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.profile-view-page .profile-cover__upload { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
body.profile-view-page .profile-cover__edit,
body.profile-view-page .profile-avatar__edit { cursor: pointer; }
body.profile-view-page .profile-cover__edit { position: static; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; }
body.profile-view-page .profile-cover__edit span { font-size: 1rem; }
body.profile-view-page .profile-avatar__upload { position: absolute; left: 88px; bottom: 4px; z-index: 4; }
body.profile-view-page .profile-avatar__edit { position: static; }
body.profile-view-page .profile-media-upload__save { position: absolute; top: 42px; right: 0; min-width: 88px; padding: 7px 9px; border: 0; border-radius: 8px; background: #d52b9a; color: #fff; font: inherit; font-size: .7rem; font-weight: 800; cursor: pointer; }
body.profile-view-page .profile-composer { display: grid; gap: 9px; margin-bottom: 16px; padding: 11px; border: 1px solid rgba(168,85,247,.22); border-radius: 12px; background: rgba(255,255,255,.035); }
body.profile-view-page .profile-compose-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 8px 10px; border: 1px solid rgba(168,85,247,.22); border-radius: 12px; background: rgba(255,255,255,.035); }
body.profile-view-page .profile-compose-bar__avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#a855f7,#ec4899); color: #fff; font-size: .7rem; font-weight: 900; }
body.profile-view-page .profile-compose-trigger { display: block; width: 100%; padding: 12px 14px; border: 1px solid rgba(168,85,247,.24); border-radius: 10px; background: rgba(255,255,255,.035); color: #aaaec2; text-align: left; font: inherit; font-size: .8rem; cursor: pointer; }
body.profile-view-page .profile-compose-trigger { flex: 1 1 auto; min-width: 0; border: 0; padding: 7px 5px; }
body.profile-view-page .profile-compose-media { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: rgba(213,43,154,.13); color: #f0a7d8; font-size: 1rem; cursor: pointer; }
body.profile-view-page .profile-compose-media:hover, body.profile-view-page .profile-compose-media:focus-visible { background: rgba(213,43,154,.24); color: #fff; }
body.profile-view-page .profile-compose-modal[hidden] { display: none !important; }
body.profile-view-page .profile-compose-modal { position: fixed; z-index: 500; inset: 50% auto auto 50%; width: min(520px, calc(100vw - 28px)); margin: 0; padding: 16px; transform: translate(-50%, -50%); background: #15162c; box-shadow: 0 24px 70px rgba(0,0,0,.5); }
body.profile-view-page .profile-compose-modal::before { content: ''; position: fixed; z-index: -1; inset: 50% auto auto 50%; width: 100vw; height: 100vh; transform: translate(-50%, -50%); background: rgba(5,6,14,.68); }
body.profile-view-page .profile-compose-modal__head { display: flex; align-items: center; justify-content: space-between; color: #fff; }
body.profile-view-page .profile-compose-close { border: 0; background: transparent; color: #aaaec2; font-size: 1.35rem; cursor: pointer; }
body.profile-view-page .profile-composer__privacy { display: grid; gap: 4px; color: #d8d9e5; font-size: .72rem; font-weight: 700; }
body.profile-view-page .profile-composer__privacy select { min-height: 34px; padding: 5px 8px; border: 1px solid rgba(168,85,247,.24); border-radius: 7px; background: #0d0e1e; color: #fff; font: inherit; font-size: .75rem; }
body.profile-view-page .profile-composer__preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.profile-view-page .profile-composer__preview img, body.profile-view-page .profile-composer__preview video { width: 100%; height: 86px; object-fit: cover; border-radius: 7px; background: #080914; }
body.profile-view-page .profile-composer__status {
    margin-bottom: 9px;
    padding: 8px 10px;
    border: 1px solid #f0c9d3;
    border-radius: 8px;
    background: #fff5f7;
    color: #a32345;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.35;
}
body.profile-view-page .profile-publish-notice {
    position: fixed;
    top: 18px;
    left: 50%;
    z-index: 700;
    max-width: min(360px, calc(100vw - 28px));
    padding: 10px 14px;
    transform: translateX(-50%);
    border: 1px solid #bfe5c9;
    border-radius: 9px;
    background: #f0fbf3;
    color: #24733b;
    box-shadow: 0 8px 24px rgba(25, 28, 38, .14);
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
}
body.profile-view-page .profile-composer__remove { margin-top: -3px; padding: 3px 5px; border: 0; border-radius: 5px; background: rgba(244,63,94,.14); color: #ffb6cb; font: inherit; font-size: .64rem; cursor: pointer; }
body.profile-view-page .profile-composer textarea { width: 100%; min-height: 58px; resize: vertical; box-sizing: border-box; }
body.profile-view-page .profile-composer__actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.profile-view-page .profile-composer__file { color: #d8b4fe; font-size: .76rem; cursor: pointer; }
body.profile-view-page .profile-composer__file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
body.profile-view-page .profile-composer__actions button[type="submit"]:disabled { opacity: .45; cursor: not-allowed; }
body.profile-view-page .profile-post__meta { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
body.profile-view-page .profile-post__meta > div { display: grid; gap: 2px; }
body.profile-view-page .profile-post__meta strong { color: #fff; font-size: .82rem; }
body.profile-view-page .profile-post__meta small { color: #9297ad; font-size: .7rem; }
body.profile-view-page .profile-post__mini-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg,#a855f7,#ec4899); color: #fff; font-size: .7rem; font-weight: 900; }
body.profile-view-page .profile-post__media { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
body.profile-view-page .profile-post__media img,
body.profile-view-page .profile-post__media video { display: block; width: 100%; max-height: 300px; object-fit: cover; border-radius: 9px; background: #080914; }
body.profile-view-page .profile-post__stats { display: flex; gap: 14px; margin-top: 10px; color: #9297ad; font-size: .7rem; }

/* Menu da conta aberto pelo avatar, compartilhado entre os cabeçalhos autenticados. */
body.home-page .home-topbar-inner,
body.discover-page .discover-topbar-inner { position: relative; }
body.home-page .home-topbar-inner--compact { overflow: visible; }
.account-menu[hidden] { display: none !important; }
.account-menu { position: absolute; z-index: 300; top: calc(100% + 10px); right: 0; width: min(292px, calc(100vw - 24px)); padding: 10px; border: 1px solid rgba(168,85,247,.28); border-radius: 15px; background: #121225; color: #f7f5ff; box-shadow: 0 18px 38px rgba(0,0,0,.34); }
.account-menu__head { display: flex; align-items: center; gap: 10px; padding: 4px 5px 11px; border-bottom: 1px solid rgba(255,255,255,.09); }
.account-menu__head > div { display: grid; min-width: 0; gap: 2px; }
.account-menu__head strong, .account-menu__head small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__head strong { font-size: .88rem; }
.account-menu__head small { color: #aaa8c0; font-size: .75rem; }
.account-menu nav { display: grid; gap: 2px; padding-top: 8px; }
.account-menu nav a, .account-menu__logout { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 7px 9px; border-radius: 9px; color: #f2effb; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background-color 140ms ease, color 140ms ease; }
.account-menu nav a:hover, .account-menu nav a:focus-visible { background: rgba(168,85,247,.14); color: #fff; }
.account-menu__icon { display: inline-grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border-radius: 8px; background: rgba(168,85,247,.16); color: #e4b8ff; font-size: .68rem; font-weight: 900; }
.account-menu__logout { margin-top: 8px; border-top: 1px solid rgba(255,255,255,.09); border-radius: 0 0 9px 9px; padding-top: 12px; color: #ffb6cb; }
.account-menu__logout:hover, .account-menu__logout:focus-visible { background: rgba(244,63,94,.12); color: #ffd6e1; }
body.home-page .home-user-chip,
body.home-page .home-avatar-btn,
body.discover-page .home-avatar-btn { cursor: pointer; font: inherit; }
@media (max-width:760px) { .account-menu { top: calc(100% + 8px); right: 8px; width: min(286px, calc(100vw - 24px)); } }
@media (max-width:760px) { body.profile-view-page .profile-avatar__upload { left: 65px; bottom: 3px; } }

/* Tema social claro do produto (o painel administrativo permanece independente). */
:root {
    --bg: #f4f5f8;
    --card: #ffffff;
    --text: #17181d;
    --muted: #68707c;
    --line: #e1e4ea;
    --accent: #a21caf;
    --accent-2: #e11d78;
    --accent-3: #7c3aed;
    --sf-page-bg: #f4f5f8;
    --sf-surface: #ffffff;
    --sf-text: #17181d;
    --sf-muted: #68707c;
    --sf-divider: #e1e4ea;
}

body:not(.admin-page) {
    background: var(--bg);
    color: var(--text);
}

body:not(.admin-page) .card,
body:not(.admin-page) .social-card,
body:not(.admin-page) .social-panel,
body:not(.admin-page) .social-stories-panel,
body:not(.admin-page) .home-email-banner,
body:not(.admin-page) .home-notifications-panel {
    background: #fff;
    border-color: var(--line);
    box-shadow: 0 3px 14px rgba(25, 28, 38, .05);
}

body:not(.admin-page) input,
body:not(.admin-page) textarea,
body:not(.admin-page) select {
    border-color: #d9dde5;
    background: #fff;
    color: #20232a;
}
body:not(.admin-page) input::placeholder,
body:not(.admin-page) textarea::placeholder { color: #858b96; opacity: 1; }
body:not(.admin-page) input:focus,
body:not(.admin-page) textarea:focus,
body:not(.admin-page) select:focus { border-color: #a21caf; outline-color: rgba(162, 28, 175, .18); }
body:not(.admin-page) option { background: #fff; color: #20232a; }

body.home-page:not(.admin-page) .home-topbar,
body.discover-page:not(.admin-page) .discover-topbar,
body:not(.admin-page) .topbar { background: #fff !important; border-bottom-color: var(--line) !important; box-shadow: 0 3px 14px rgba(25,28,38,.06) !important; backdrop-filter: none !important; }
body.home-page:not(.admin-page) .home-topbar-inner,
body.discover-page:not(.admin-page) .discover-topbar-inner { color: #17181d; }
body.home-page:not(.admin-page) .home-wordmark,
body.home-page:not(.admin-page) .brand-wordmark strong,
body.discover-page:not(.admin-page) .brand-wordmark strong { color: #17181d; }
body.home-page:not(.admin-page) .brand-wordmark small,
body.discover-page:not(.admin-page) .brand-wordmark small { color: #68707c; }
body.home-page:not(.admin-page) .home-icon-btn,
body.home-page:not(.admin-page) .home-avatar-btn,
body.discover-page:not(.admin-page) .home-icon-btn,
body.discover-page:not(.admin-page) .home-avatar-btn,
body:not(.admin-page) .home-toolbar-btn { background: #fff; border-color: #dfe2e8; color: #4c5360; box-shadow: none; }
body.home-page:not(.admin-page) .home-icon-btn:hover,
body.home-page:not(.admin-page) .home-avatar-btn:hover,
body.discover-page:not(.admin-page) .home-icon-btn:hover,
body.discover-page:not(.admin-page) .home-avatar-btn:hover { background: #faf4fc; border-color: #d9a9df; color: #8d168f; box-shadow: none; }
body.home-page:not(.admin-page) .home-user-chip { background: #fff; border-color: #dfe2e8; color: #20232a; }
body.home-page:not(.admin-page) .home-user-meta small { color: #747b86; }

/* Contraste da marca no cabeçalho claro do dashboard. */
body.home-page:not(.admin-page) .home-topbar--compact .brand-wordmark {
    display: grid;
    align-items: start;
    gap: 2px;
}
body.home-page:not(.admin-page) .home-topbar--compact .brand-wordmark strong,
body.home-page:not(.admin-page) .home-topbar--compact .brand-wordmark .brand-sex {
    color: #111827 !important;
}
body.home-page:not(.admin-page) .home-topbar--compact .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent !important;
}
body.home-page:not(.admin-page) .home-topbar--compact .brand-wordmark small {
    color: #6b7280 !important;
    opacity: 1;
}

body.profile-view-page { background: #f4f5f8 !important; color: #17181d !important; }
body.profile-view-page .profile-head { color: #17181d; }
body.profile-view-page .profile-head__eyebrow { color: #8d168f; }
body.profile-view-page .profile-head h1 { color: #17181d; }
body.profile-view-page .profile-card { background: #fff; border-color: #dfe2e8; box-shadow: 0 4px 16px rgba(25,28,38,.06); }
body.profile-view-page .profile-cover { background: linear-gradient(135deg, #eadcf1, #f9e7f2 55%, #eeeafb); }
body.profile-view-page .profile-cover::after { background: linear-gradient(180deg, transparent 35%, rgba(38, 25, 47, .18)); }
body.profile-view-page .profile-cover__edit { background: rgba(255,255,255,.9); border-color: #d5b3dc; color: #7d197f; }
body.profile-view-page .profile-card__hero { color: #17181d; }
body.profile-view-page .profile-card__avatar { border-color: #fff; }
body.profile-view-page .profile-card__title-line strong,
body.profile-view-page .profile-card__headline,
body.profile-view-page .profile-card__location,
body.profile-view-page .profile-card__status strong { color: #17181d; }
body.profile-view-page .profile-card__username { color: #8d168f; }
body.profile-view-page .profile-card__status small,
body.profile-view-page .profile-stats small,
body.profile-view-page .profile-about dt,
body.profile-view-page .profile-post__meta small { color: #68707c; }
body.profile-view-page .profile-stats,
body.profile-view-page .profile-tabs,
body.profile-view-page .profile-post { border-color: #e1e4ea; }
body.profile-view-page .profile-stats strong,
body.profile-view-page .profile-tabs a.is-active,
body.profile-view-page .profile-about h2,
body.profile-view-page .profile-posts h2,
body.profile-view-page .profile-post__meta strong { color: #17181d; }
body.profile-view-page .profile-tabs a { color: #68707c; }
body.profile-view-page .profile-tabs a.is-active::after { background: #d11b8a; }
body.profile-view-page .profile-about dd,
body.profile-view-page .profile-post p { color: #333943; }
body.profile-view-page .profile-card__empty { background: #f7f8fa; color: #68707c; border: 1px solid #e1e4ea; }
body.profile-view-page .profile-composer,
body.profile-view-page .profile-compose-bar { background: #fff; border-color: #dfe2e8; box-shadow: none; }
body.profile-view-page .profile-compose-trigger { color: #68707c; background: #f5f6f8; }
body.profile-view-page .profile-compose-media { background: #f9eaf7; color: #a21caf; }
body.profile-view-page .profile-compose-modal { background: #fff; color: #17181d; box-shadow: 0 20px 50px rgba(25,28,38,.2); }
body.profile-view-page .profile-compose-modal__head { color: #17181d; }
body.profile-view-page .profile-compose-close { color: #68707c; }
body.profile-view-page .profile-composer__privacy { color: #333943; }
body.profile-view-page .profile-composer__privacy select { background: #fff; color: #20232a; }
body.profile-view-page .profile-media-upload__save { background: #a21caf; }

body:not(.admin-page) .account-menu { background: #fff; border-color: #e0d3e5; color: #20232a; box-shadow: 0 12px 30px rgba(25,28,38,.16); }
body:not(.admin-page) .account-menu__head { border-color: #ece7ef; }
body:not(.admin-page) .account-menu__head strong { color: #20232a; }
body:not(.admin-page) .account-menu__head small { color: #747b86; }
body:not(.admin-page) .account-menu nav a { color: #343943; }
body:not(.admin-page) .account-menu nav a:hover,
body:not(.admin-page) .account-menu nav a:focus-visible { background: #faf2fb; color: #8d168f; }
body:not(.admin-page) .account-menu__icon { background: #f5eafa; color: #8d168f; }
body:not(.admin-page) .account-menu__logout { border-color: #ece7ef; color: #c0264d; }

body:not(.admin-page) .home-bottom-nav.home-bottom-nav .home-bottom-nav__shell { background: #fff !important; border-color: #e1e4ea !important; box-shadow: 0 -3px 14px rgba(25,28,38,.06) !important; backdrop-filter: none !important; }
body:not(.admin-page) .home-bottom-nav.home-bottom-nav .home-bottom-nav__item { color: #68707c !important; background: transparent !important; box-shadow: none !important; }
body:not(.admin-page) .home-bottom-nav.home-bottom-nav .home-bottom-nav__item.is-active { color: #a21caf !important; background: #faf2fb !important; }

body.profile-view-page .profile-shell,
body.profile-view-page .profile-card,
body.profile-view-page .profile-card__hero,
body.profile-view-page .profile-stats,
body.profile-view-page .profile-tabs,
body.profile-view-page .profile-tab-panel,
body.profile-view-page .profile-post { background: #fff !important; color: #17181d !important; }
body.profile-view-page .profile-card__hero { border-color: #e1e4ea !important; }
body.profile-view-page .profile-card__title-line strong,
body.profile-view-page .profile-card__headline,
body.profile-view-page .profile-card__location,
body.profile-view-page .profile-card__status strong,
body.profile-view-page .profile-stats strong,
body.profile-view-page .profile-tabs a.is-active,
body.profile-view-page .profile-about h2,
body.profile-view-page .profile-posts h2,
body.profile-view-page .profile-post__meta strong,
body.profile-view-page .profile-post p { color: #17181d !important; }
body.profile-view-page .profile-card__username { color: #8d168f !important; }
body.profile-view-page .profile-card__status small,
body.profile-view-page .profile-stats small,
body.profile-view-page .profile-tabs a,
body.profile-view-page .profile-about dt,
body.profile-view-page .profile-about dd,
body.profile-view-page .profile-post__meta small,
body.profile-view-page .profile-post__stats { color: #68707c !important; }
body.profile-view-page .profile-stats,
body.profile-view-page .profile-tabs,
body.profile-view-page .profile-post { border-color: #e1e4ea !important; }
body.profile-view-page .profile-post { width: 100%; box-sizing: border-box; padding: 16px 0 14px; }
body.profile-view-page .profile-post__media { display: block; width: 100%; margin: 12px 0 0; }
body.profile-view-page .profile-post__media a { display: block; width: 100%; }
body.profile-view-page .profile-post__media img,
body.profile-view-page .profile-post__media video { display: block; width: 100%; max-width: 100%; max-height: 560px; min-height: 180px; object-fit: contain; border-radius: 10px; background: #f1f3f5; }
body.profile-view-page .profile-post__stats { align-items: center; padding-top: 10px; border-top: 1px solid #eef0f2; font-size: .76rem; }
body.profile-view-page .profile-post__meta { position: relative; padding-right: 34px; }
body.profile-view-page .profile-post__body { white-space: pre-wrap; }
body.profile-view-page .profile-post .social-post-menu-wrap { margin-left: auto; align-self: flex-start; }
body.profile-view-page .profile-post .social-card__menu { background: #fff; border-color: #e1e4ea; color: #68707c; }
body.profile-view-page .profile-post .social-card__foot { color: #68707c; }
body.profile-view-page .profile-post .social-card__metrics { color: #68707c; }
body.profile-view-page .profile-post .social-reactions-toggle { color: #68707c; }
body.profile-view-page .profile-post .social-icon-btn { background: #fff; border-color: #e1e4ea; color: #68707c; }
body.profile-view-page .profile-post .social-icon-btn--reaction.is-reacted { color: #a21caf; }
body.profile-view-page .profile-post .social-comment-form input { background: #f7f8fa; color: #333943; border-color: #dfe2e8; }
body.profile-view-page .profile-cover__upload {
    position: absolute !important;
    width: 36px;
    height: 36px;
    display: block;
    right: 16px;
    bottom: 16px;
    z-index: 20 !important;
    pointer-events: auto;
}
body.profile-view-page .profile-media-upload__save {
    top: calc(100% + 8px);
    z-index: 30;
    white-space: nowrap;
}
body.profile-view-page .profile-media-upload {
    overflow: visible !important;
}
body.profile-view-page .profile-media-upload__save:disabled {
    cursor: wait;
    opacity: .72;
}
body.profile-view-page .profile-media-upload__feedback {
    position: absolute;
    top: calc(100% + 45px);
    right: 0;
    z-index: 30;
    width: max-content;
    max-width: min(260px, 72vw);
    padding: 6px 8px;
    border: 1px solid #cce8d6;
    border-radius: 7px;
    background: #f0fbf3;
    color: #24733b;
    font-size: .68rem;
    font-weight: 700;
    line-height: 1.25;
}
body.profile-view-page .profile-media-upload__feedback.is-error {
    border-color: #f3c6d0;
    background: #fff4f6;
    color: #b42343;
}
body.profile-view-page .profile-cover__edit {
    width: 36px;
    height: 36px;
    position: absolute !important;
    inset: 0;
    display: grid !important;
    place-items: center;
    border: 1px solid #d5b3dc;
    border-radius: 10px;
    background: rgba(255, 255, 255, .94);
    color: #8d168f;
    box-shadow: 0 3px 10px rgba(44, 24, 58, .12);
}
body.profile-view-page .profile-cover__edit span {
    display: block;
    position: relative;
    z-index: 2;
    font-size: .95rem;
    line-height: 1;
}
body.profile-view-page .profile-cover__edit input[type="file"] {
    pointer-events: none;
}

/* Ajustes exclusivos da capa do perfil: proporção mais confortável e câmera sobre a imagem. */
body.profile-view-page .profile-cover {
    position: relative !important;
    height: clamp(210px, 26vw, 280px) !important;
    min-height: 0 !important;
    overflow: hidden;
    isolation: auto !important;
}

body.profile-view-page .profile-cover::after {
    z-index: 0;
}

body.profile-view-page .profile-cover__upload {
    position: absolute !important;
    top: auto !important;
    right: 16px !important;
    bottom: clamp(56px, 7vw, 70px) !important;
    left: auto !important;
    z-index: 40 !important;
    display: block !important;
    width: 38px !important;
    height: 38px !important;
    margin: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

body.profile-view-page .profile-cover__edit {
    position: relative !important;
    inset: auto !important;
    display: grid !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    place-items: center;
    visibility: visible !important;
    opacity: 1 !important;
}

@media (max-width: 760px) {
    body.profile-view-page .profile-cover {
        height: 210px !important;
    }

    body.profile-view-page .profile-cover__upload {
        right: 13px !important;
        bottom: 56px !important;
    }
}

/* Reposicionamento da capa: controles locais e arraste por mouse ou toque. */
body.profile-view-page .profile-cover.is-repositioning {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

body.profile-view-page .profile-cover.is-repositioning.is-cover-dragging {
    cursor: grabbing;
}

body.profile-view-page .profile-cover__reposition-hint {
    position: absolute;
    z-index: 8;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(10, 11, 25, .72);
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(6px);
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

body.profile-view-page .profile-cover__reposition-hint > span:first-child {
    color: #f1b5df;
    font-size: 1rem;
    line-height: .8;
}

body.profile-view-page .profile-cover.is-repositioning .profile-cover__reposition-hint {
    opacity: 1;
    transform: translate(-50%, -50%);
    visibility: visible;
}

body.profile-view-page .profile-cover.is-cover-dragging .profile-cover__reposition-hint {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-4px);
    visibility: hidden;
}

body.profile-view-page .profile-cover__reposition,
body.profile-view-page .profile-cover__position-tools {
    position: absolute;
    z-index: 41;
}

body.profile-view-page .profile-cover__reposition {
    left: 16px;
    bottom: 16px;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 9px;
    background: rgba(10, 11, 25, .72);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: .74rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
}

body.profile-view-page .profile-cover__position-tools {
    left: 16px;
    bottom: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

body.profile-view-page .profile-cover.is-repositioning .profile-cover__upload {
    right: 16px !important;
    bottom: 62px !important;
}

body.profile-view-page .profile-cover.is-repositioning .profile-media-upload__save {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 42;
    min-width: 88px;
    white-space: nowrap;
}

body.profile-view-page .profile-cover__position-tools[hidden],
body.profile-view-page .profile-cover__reposition[hidden] {
    display: none !important;
}

body.profile-view-page .profile-cover__position-save,
body.profile-view-page .profile-cover__position-cancel {
    padding: 9px 12px;
    border-radius: 9px;
    cursor: pointer;
    font: inherit;
    font-size: .74rem;
    font-weight: 800;
}

body.profile-view-page .profile-cover__position-save {
    border: 0;
    background: linear-gradient(135deg, #8f35df, #e22991);
    color: #fff;
    box-shadow: 0 4px 12px rgba(126, 33, 177, .25);
}

body.profile-view-page .profile-cover__position-cancel {
    border: 1px solid rgba(255, 255, 255, .45);
    background: rgba(10, 11, 25, .72);
    color: #fff;
}

body.profile-view-page .profile-cover__position-save:disabled {
    cursor: wait;
    opacity: .7;
}

@media (max-width: 760px) {
    body.profile-view-page .profile-cover__reposition,
    body.profile-view-page .profile-cover__position-tools {
        left: 12px;
        bottom: 12px;
    }

    body.profile-view-page .profile-cover.is-repositioning .profile-cover__upload {
        right: 12px !important;
        bottom: 58px !important;
    }

    body.profile-view-page .profile-cover__reposition-hint {
        max-width: calc(100% - 34px);
        font-size: .72rem;
        white-space: nowrap;
    }
}

body.profile-view-page .profile-card__avatar {
    overflow: visible !important;
}
body.profile-view-page .profile-avatar__upload {
    left: auto;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 34px;
    display: block;
    z-index: 20 !important;
    pointer-events: auto;
}
body.profile-view-page .profile-avatar__edit {
    position: absolute !important;
    inset: 0;
    display: grid !important;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #a21caf;
    color: #fff;
    box-shadow: 0 3px 9px rgba(44, 24, 58, .2);
    font-size: .85rem;
    line-height: 1;
}
body.profile-view-page .profile-avatar__edit span {
    display: block;
    position: relative;
    z-index: 2;
    font-size: .9rem;
    line-height: 1;
}
body.profile-view-page .profile-avatar__edit input[type="file"] {
    pointer-events: none;
}
body.profile-view-page .profile-post {
    padding: 16px 20px 18px;
}
body.profile-view-page .profile-post__meta {
    padding-right: 0;
    margin-bottom: 12px;
}
body.profile-view-page .profile-post__media {
    margin-top: 12px;
}
body.profile-view-page .profile-post .social-card__foot {
    margin-top: 12px;
    gap: 10px;
}
body.profile-view-page .profile-post .social-card__metrics {
    column-gap: 18px;
    row-gap: 8px;
}
body.profile-view-page .profile-post .social-card__toolbar {
    gap: 10px;
}
@media (max-width: 640px) {
    body.profile-view-page .profile-post {
        padding: 14px 16px 16px;
    }
}
body.profile-view-page .profile-compose-bar,
body.profile-view-page .profile-composer { background: #fff !important; border-color: #dfe2e8 !important; }
body.profile-view-page .profile-compose-trigger { background: #f5f6f8 !important; color: #68707c !important; }
body.profile-view-page .profile-compose-media { background: #f9eaf7 !important; color: #a21caf !important; }
body.profile-view-page .profile-compose-modal { background: #fff !important; color: #17181d !important; }
body.profile-view-page .profile-compose-modal__head,
body.profile-view-page .profile-composer__privacy { color: #333943 !important; }

/* Dashboard: mídia com o mesmo tratamento proporcional e neutro do perfil. */
body.home-page .social-card__media--single:not(.is-video) {
    height: auto;
    min-height: 0;
    max-height: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #f1f3f5;
    border-radius: 10px;
}

body.home-page .social-card__media--single:not(.is-video) img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    margin-inline: auto;
}

body.home-page .social-card__media--single.is-video,
body.home-page .social-card__media--single.is-video > .social-video-player {
    height: auto;
    min-height: 0;
    max-height: none;
    background: #f1f3f5;
}

body.home-page .social-card__media--single.is-video > .social-video-player {
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.home-page .social-card__media--single.is-video .social-video-player__media {
    position: relative;
    inset: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    object-position: center;
    background: transparent;
    margin-inline: auto;
}

body.home-page .social-card__carousel {
    background: #f1f3f5;
}

body.home-page .social-card__carousel-slide {
    height: auto;
    min-height: 0;
    background: #f1f3f5;
}

body.home-page .social-card__carousel-slide > img,
body.home-page .social-card__carousel-slide > video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    background: transparent;
    margin-inline: auto;
}

body.home-page .social-card__carousel-slide > .social-video-player {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
    background: #f1f3f5;
}

body.home-page .social-card__carousel-slide > .social-video-player .social-video-player__media {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 560px;
    background: transparent;
}

body.home-page:not(.admin-page) .home-main,
body.discover-page:not(.admin-page) .discover-main,
body.home-page:not(.admin-page) .social-home { background: #f4f5f8 !important; color: #17181d !important; }
body.home-page:not(.admin-page) .social-panel__eyebrow,
body.home-page:not(.admin-page) .social-panel__link,
body.home-page:not(.admin-page) .home-feed-tabs__item.is-active { color: #a21caf !important; }
body.home-page:not(.admin-page) .social-panel__head h2,
body.home-page:not(.admin-page) .social-card h3,
body.home-page:not(.admin-page) .social-card strong { color: #17181d !important; }
body.home-page:not(.admin-page) .social-card p,
body.home-page:not(.admin-page) .social-card small { color: #68707c !important; }
body.search-page:not(.admin-page) .search-toolbar,
body.search-page:not(.admin-page) .search-filters,
body.search-page:not(.admin-page) .search-tip,
body.search-page:not(.admin-page) .search-result,
body.search-page:not(.admin-page) .search-empty,
body.discover-page:not(.admin-page) .discover-filter,
body.discover-page:not(.admin-page) .discover-card { background: #fff; border-color: #e1e4ea; box-shadow: 0 3px 14px rgba(25,28,38,.05); color: #17181d; }
body.search-page:not(.admin-page) .search-toolbar__query input,
body.search-page:not(.admin-page) .search-toolbar__sort select,
body.search-page:not(.admin-page) .search-filters__form input,
body.search-page:not(.admin-page) .search-filters__form select { background: #fff; color: #20232a; border-color: #d9dde5; }
body.search-page:not(.admin-page) .search-toolbar__sort span,
body.search-page:not(.admin-page) .search-filters__form label span { color: #5b226e; }

/* Home pública: encerrar o footer logo após a última linha */
@media (max-width: 760px) {
    body.home-page.home-page.home-page:not(.is-authenticated) .home-main {
        padding-bottom: 0 !important;
    }

    body.home-page:not(.is-authenticated) .home-footer,
    body.home-page:not(.is-authenticated) .home-footer-inner,
    body.home-page:not(.is-authenticated) .home-footer-bottom {
        height: auto !important;
        min-height: 0 !important;
        margin-bottom: 0 !important;
    }

    body.home-page:not(.is-authenticated) .home-footer {
        padding-bottom: 0;
    }

    body.home-page:not(.is-authenticated) .home-footer-bottom {
        padding-bottom: 18px;
    }
}
.admin-email-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.admin-email-form label,.admin-email-test-grid label{display:grid;gap:7px;color:#30343d;font-size:.82rem;font-weight:700}.admin-email-form input,.admin-email-form select,.admin-email-test-grid input,.admin-email-test-grid select{width:100%;min-width:0;padding:10px 11px;border:1px solid #dfe2e7;border-radius:8px;background:#fff;color:#252a32;font:inherit;font-weight:400}.admin-email-form input:focus,.admin-email-form select:focus,.admin-email-test-grid input:focus,.admin-email-test-grid select:focus{outline:2px solid rgba(166,40,180,.16);border-color:#a628b4}.admin-email-form small{color:#777d87;font-weight:400;font-size:.72rem}.admin-email-enabled{display:flex!important;grid-column:1/-1;display:flex;align-items:center!important;gap:8px!important}.admin-email-enabled input{width:auto}.admin-email-form .admin-button{grid-column:1/-1;justify-self:start}.admin-email-test-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.admin-email-test-grid form{display:grid;gap:12px;padding:16px;border:1px solid #e4e6ea;border-radius:10px;background:#fafbfc}.admin-email-test-grid .admin-button{justify-self:start}.admin-email-panel,.admin-email-tests{max-width:980px;margin-bottom:16px}@media(max-width:700px){.admin-email-form,.admin-email-test-grid{grid-template-columns:1fr}.admin-email-enabled,.admin-email-form .admin-button{grid-column:auto}.admin-email-form .admin-button{width:100%}}
/* O composer compartilhado mantém a mesma superfície clara no perfil. */
body.profile-view-page .post-modal { padding: 20px; background: rgba(17,24,39,.22); backdrop-filter: blur(4px); }
body.profile-view-page .post-modal__backdrop { background: rgba(17,24,39,.34); backdrop-filter: blur(3px); }
body.profile-view-page .post-modal__panel { width: min(640px,100%); max-height: min(760px,calc(100dvh - 40px)); overflow: hidden; border: 1px solid #e1e5eb; border-radius: 18px; background: #fff; color: #17181d; box-shadow: 0 18px 50px rgba(31,41,55,.18); }
body.profile-view-page .post-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #edf0f3; }
body.profile-view-page .post-modal__head h2 { margin: 0; color: #111827; font-size: 1.12rem; font-weight: 800; text-align: left; }
body.profile-view-page .post-modal__icon-btn { display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f4f6; color: #4b5563; font-size: 1.35rem; line-height: 1; }
body.profile-view-page .post-modal__icon-btn:hover, body.profile-view-page .post-modal__icon-btn:focus-visible { background: #fbeaf7; color: #a21caf; }
body.profile-view-page .post-modal__form { max-height: calc(min(760px,100dvh - 40px) - 70px); overflow-y: auto; overflow-x: hidden; padding: 20px; }
body.profile-view-page .post-modal__grid { display: flex; flex-direction: column; gap: 16px; }
body.profile-view-page .post-modal__media, body.profile-view-page .post-modal__side { display: contents; }
body.profile-view-page .post-modal__field { order: 1; gap: 7px; }
body.profile-view-page .post-modal__field > span, body.profile-view-page .post-modal__visibility legend { color: #20242b; font-size: .82rem; font-weight: 800; }
body.profile-view-page .post-modal__field textarea { width: 100%; min-height: 112px; padding: 12px; box-sizing: border-box; border: 1px solid #dfe3e8; border-radius: 11px; background: #f7f8fa; color: #20232a; resize: vertical; }
body.profile-view-page .post-modal__field textarea::placeholder { color: #858b96; opacity: 1; }
body.profile-view-page .post-modal__field small { color: #8a929d; font-size: .7rem; }
body.profile-view-page .post-modal__media { order: 2; display: grid; gap: 9px; }
body.profile-view-page .post-modal__dropzone { min-height: 112px; padding: 14px 16px; border: 1px dashed #d8c5e1; border-radius: 13px; background: #fcf8fd; gap: 5px; }
body.profile-view-page .post-modal__dropzone-icon { width: 34px; height: 34px; border: 0; border-radius: 9px; background: #f5e8f7; color: #a21caf; font-size: 1.05rem; }
body.profile-view-page .post-modal__dropzone strong { color: #30343d; font-size: .82rem; }
body.profile-view-page .post-modal__dropzone p { color: #7b838e; font-size: .7rem; line-height: 1.35; }
body.profile-view-page .post-modal__dropzone .btn { min-height: 32px; margin-top: 3px; padding: 0 12px; font-size: .7rem; }
body.profile-view-page .post-modal__preview { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
body.profile-view-page .post-modal__preview-empty { display: none; }
body.profile-view-page .post-modal__preview-item { gap: 7px; padding: 7px; border: 1px solid #e2e5ea; border-radius: 11px; background: #f7f8fa; }
body.profile-view-page .post-modal__preview-item img, body.profile-view-page .post-modal__preview-item video { height: 138px; border-radius: 8px; background: #eef0f3; object-fit: cover; }
body.profile-view-page .post-modal__preview-meta { color: #68707c; font-size: .7rem; }
body.profile-view-page .post-modal__preview-meta strong { color: #30343d; }
body.profile-view-page .post-modal__preview-controls { gap: 5px; }
body.profile-view-page .post-modal__preview-controls button { min-height: 28px; padding: 0 8px; border: 1px solid #dfe3e8; background: #fff; color: #59616d; font-size: .68rem; }
body.profile-view-page .post-modal__visibility { order: 3; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; padding: 12px; border: 1px solid #e2e5ea; border-radius: 11px; background: #f7f8fa; }
body.profile-view-page .post-modal__visibility legend { grid-column: 1 / -1; padding: 0 3px; }
body.profile-view-page .post-modal__visibility label { gap: 7px; color: #4b5563; font-size: .75rem; font-weight: 700; }
body.profile-view-page .post-modal__visibility input { accent-color: #a21caf; }
body.profile-view-page .post-modal__terms { order: 4; color: #7b838e; font-size: .7rem; }
body.profile-view-page .post-modal__terms a { color: #a21caf; }
body.profile-view-page .post-modal__status { order: 5; min-height: 0; color: #b42343; font-size: .75rem; }
body.profile-view-page .post-modal__side > .btn-block { order: 6; width: 100%; min-height: 48px; border: 0; border-radius: 11px; background: linear-gradient(135deg,#7c3aed,#d11b8a); color: #fff; font-size: .86rem; font-weight: 800; box-shadow: 0 6px 15px rgba(162,28,175,.16); }
@media (max-width:600px) {
    body.profile-view-page .post-modal { padding: 8px; }
    body.profile-view-page .post-modal__panel { width: 100%; max-height: calc(100dvh - 16px); border-radius: 16px; }
    body.profile-view-page .post-modal__form { max-height: calc(100dvh - 78px); padding: 16px; }
    body.profile-view-page .post-modal__preview { grid-template-columns: repeat(2,minmax(0,1fr)); }
    body.profile-view-page .post-modal__preview-item img, body.profile-view-page .post-modal__preview-item video { height: 116px; }
}

/* Gerenciamento inline dos comentários. */
.social-comment-menu-wrap {
    position: relative;
    flex: 0 0 auto;
    margin-left: auto;
}

.social-comment-menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid rgba(155, 92, 255, 0.2);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.social-comment-menu-toggle:hover,
.social-comment-menu-toggle:focus-visible {
    border-color: rgba(155, 92, 255, 0.45);
    background: rgba(155, 92, 255, 0.12);
}

.social-comment-menu {
    position: absolute;
    z-index: 80;
    top: calc(100% + 6px);
    right: 0;
    display: grid;
    min-width: 128px;
    padding: 5px;
    border: 1px solid #e3e5ea;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.18);
}

.social-comment-menu[hidden],
.social-comment-confirm[hidden],
.social-comment-confirm__error[hidden] {
    display: none !important;
}

/* O submenu pode ultrapassar o limite inferior do painel de comentários. */
.social-comments-panel.social-comments-panel--menu-open {
    overflow: visible;
}

.social-comment-menu__item {
    width: 100%;
    min-height: 34px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #252936;
    font: inherit;
    font-size: 0.78rem;
    text-align: left;
    cursor: pointer;
}

.social-comment-menu__item:hover,
.social-comment-menu__item:focus-visible {
    background: #f5f1fb;
}

.social-comment-menu__item--danger:hover,
.social-comment-menu__item--danger:focus-visible {
    background: #fff0f2;
    color: #c0264a;
}

.social-comment-editor {
    display: grid;
    gap: 8px;
    margin-top: 6px;
}

.social-comment-editor textarea {
    width: 100%;
    min-height: 72px;
    box-sizing: border-box;
    padding: 9px 10px;
    border: 1px solid #d9dce3;
    border-radius: 10px;
    background: #fff;
    color: #252936;
    font: inherit;
    font-size: 0.86rem;
    resize: vertical;
}

.social-comment-editor__actions {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.social-comment-editor__actions button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #d9dce3;
    border-radius: 8px;
    background: #fff;
    color: #4b5563;
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.social-comment-editor__actions button[type="submit"] {
    border-color: #a21caf;
    background: #a21caf;
    color: #fff;
}

.social-comment-editor__actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.social-comment-editor__error,
.social-comment-confirm__error {
    margin: 0;
    color: #c0264a;
    font-size: 0.75rem;
}

.social-comment-confirm {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

.social-comment-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 24, 39, 0.46);
    backdrop-filter: blur(3px);
}

.social-comment-confirm__panel {
    position: relative;
    width: min(360px, 100%);
    padding: 24px;
    border: 1px solid #e4e6eb;
    border-radius: 18px;
    background: #fff;
    color: #1f2430;
    box-shadow: 0 22px 60px rgba(17, 24, 39, 0.24);
    text-align: center;
}

.social-comment-confirm__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: #fff0f2;
    color: #c0264a;
    font-size: 1.2rem;
    font-weight: 800;
}

.social-comment-confirm__panel h2 {
    margin: 0;
    color: #111827;
    font-size: 1.05rem;
}

.social-comment-confirm__panel > p:not(.social-comment-confirm__error) {
    margin: 8px 0 18px;
    color: #6b7280;
    font-size: 0.84rem;
}

.social-comment-confirm__actions {
    display: flex;
    justify-content: center;
    gap: 9px;
}

.social-comment-confirm__actions button {
    min-width: 104px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.social-comment-confirm__cancel {
    border: 1px solid #d9dce3;
    background: #fff;
    color: #4b5563;
}

.social-comment-confirm__delete {
    border: 1px solid #c0264a;
    background: #c0264a;
    color: #fff;
}

.social-comment-confirm__actions button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 600px) {
    .social-comment-confirm__panel {
        padding: 20px;
        border-radius: 16px;
    }
}

/* Botão de comentário: discreto vazio e destacado quando há texto. */
.social-comment-form .social-action {
    border-color: #e1e4ea;
    background: #f3f4f6;
    color: #9aa1ad;
    cursor: not-allowed;
    opacity: 0.72;
}

.social-comment-form .social-action:not(:disabled),
.social-comment-form .social-action.is-ready {
    border-color: transparent;
    background: linear-gradient(135deg, #7c3aed, #d11b8a);
    color: #fff;
    cursor: pointer;
    opacity: 1;
    box-shadow: 0 6px 16px rgba(162, 28, 175, 0.18);
}

.social-comment-form .social-action:not(:disabled):hover,
.social-comment-form .social-action.is-ready:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.social-comment-item__actions {
    margin-top: 6px;
}

.social-comment-reply {
    border: 0;
    padding: 0;
    background: transparent;
    color: #8d168f;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.social-comment-reply:hover,
.social-comment-reply:focus-visible {
    color: #d3138b;
    text-decoration: underline;
}

.social-comment-replies {
    display: grid;
    gap: 8px;
    margin: 8px 0 0 24px;
    padding-left: 12px;
    border-left: 2px solid rgba(155, 92, 255, .18);
}

.social-comment-item--reply {
    padding: 8px 10px;
}

.social-comment-reply-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    margin-top: 8px;
}

.social-comment-reply-form input {
    min-width: 0;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(155, 92, 255, .25);
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: inherit;
}

.social-comment-reply-form button {
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(155, 92, 255, .22);
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font-size: .78rem;
    font-weight: 700;
    cursor: pointer;
}

.social-comment-reply-form button[type="submit"] {
    border-color: transparent;
    background: linear-gradient(135deg, #8d168f, #d3138b);
    color: #fff;
}

.social-comment-reply-form button:disabled {
    opacity: .6;
    cursor: wait;
}

.social-comment-reply-form small {
    grid-column: 1 / -1;
    color: #d64568;
    font-size: .76rem;
}

@media (max-width: 600px) {
    .social-comment-reply-form {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .social-comment-reply-form [data-comment-reply-cancel] {
        grid-column: 2;
    }

    .social-comment-replies {
        margin-left: 12px;
        padding-left: 8px;
    }
}

/* Comentários do perfil: contraste claro sem alterar o feed. */
body.profile-view-page .profile-post .social-comments-toggle {
    color: #8d168f !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comments-toggle:hover,
body.profile-view-page .profile-post .social-comments-toggle:focus-visible {
    color: #d3138b !important;
}

body.profile-view-page .profile-post .social-comments-panel {
    border-top-color: #e1e4ea !important;
    color: #374151 !important;
}

body.profile-view-page .profile-post .social-comments-panel__head,
body.profile-view-page .profile-post .social-comments-panel__head span {
    color: #6b7280 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comments-panel__head strong,
body.profile-view-page .profile-post .social-comment-item__meta strong {
    color: #111827 !important;
}

body.profile-view-page .profile-post .social-comment-item {
    background: #fff !important;
    border-color: #e1e4ea !important;
    color: #374151 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-item__meta span {
    color: #6b7280 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-item__content p {
    color: #374151 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-item--reply {
    background: #fbf9fd !important;
    border-color: #eadff0 !important;
}

body.profile-view-page .profile-post .social-comment-replies {
    border-left-color: #e4d4ec !important;
}

body.profile-view-page .profile-post .social-comment-reply {
    color: #8d168f !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-reply:hover,
body.profile-view-page .profile-post .social-comment-reply:focus-visible {
    color: #d3138b !important;
}

body.profile-view-page .profile-post .social-comment-menu-toggle {
    background: #fff !important;
    border-color: #d9dce3 !important;
    color: #4b5563 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-menu-toggle:hover,
body.profile-view-page .profile-post .social-comment-menu-toggle:focus-visible {
    background: #faf2fb !important;
    border-color: #c98bd2 !important;
    color: #8d168f !important;
}

body.profile-view-page .profile-post .social-comment-menu {
    background: #fff !important;
    border-color: #e1e4ea !important;
    color: #252936 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-menu__item {
    color: #252936 !important;
    opacity: 1 !important;
}

body.profile-view-page .profile-post .social-comment-menu__item:hover,
body.profile-view-page .profile-post .social-comment-menu__item:focus-visible {
    background: #f8eef9 !important;
    color: #8d168f !important;
}

body.profile-view-page .profile-post .social-comment-menu__item--danger:hover,
body.profile-view-page .profile-post .social-comment-menu__item--danger:focus-visible {
    background: #fff0f2 !important;
    color: #c0264a !important;
}

body.profile-view-page .profile-post .social-comment-reply-form input {
    background: #f7f8fa !important;
    border-color: #dfe2e8 !important;
    color: #333943 !important;
}

/* Messages: final light-theme contrast pass */
body.messages-page.messages-page.messages-page,
body.messages-page.messages-page.messages-page .messages-main {
    background: #f7f7f9 !important;
    color: #17181b !important;
}

body.messages-page.messages-page.messages-page .messages-toolbar__title h1,
body.messages-page.messages-page.messages-page .messages-sidebar__head h2,
body.messages-page.messages-page.messages-page .messages-conversation__title-line strong,
body.messages-page.messages-page.messages-page .messages-thread__title-line h2,
body.messages-page.messages-page.messages-page .messages-thread__empty-inline strong,
body.messages-page.messages-page.messages-page .messages-empty h2 {
    color: #17181b !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-conversation__snippet,
body.messages-page.messages-page.messages-page .messages-thread__empty-inline p,
body.messages-page.messages-page.messages-page .messages-empty p,
body.messages-page.messages-page.messages-page .messages-thread__status,
body.messages-page.messages-page.messages-page .messages-thread__location,
body.messages-page.messages-page.messages-page .messages-conversation__location,
body.messages-page.messages-page.messages-page .messages-conversation__time,
body.messages-page.messages-page.messages-page .messages-conversation__meta,
body.messages-page.messages-page.messages-page .messages-sidebar__empty,
body.messages-page.messages-page.messages-page .messages-sidebar__empty p {
    color: #5f6672 !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-empty,
body.messages-page.messages-page.messages-page .messages-thread__empty-inline {
    color: #4b5563 !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-empty__icon {
    background: #fbe6f1 !important;
    border: 1px solid #f0cde2;
    color: #a21caf !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-sidebar__eyebrow {
    background: #f3e7fb !important;
    border-color: #dfc7f0 !important;
    color: #7d197f !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-sidebar__count {
    background: #fbe1ef !important;
    color: #a21caf !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-toolbar__icon,
body.messages-page.messages-page.messages-page .messages-thread__back {
    color: #4b5563 !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .message-bubble {
    color: #27292e !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .message-bubble.is-self {
    color: #4f214e !important;
}

body.messages-page.messages-page.messages-page .message-bubble__time {
    color: #6b7280 !important;
    opacity: 1 !important;
}

body.messages-page.messages-page.messages-page .messages-compose textarea {
    color: #27292e !important;
}

body.messages-page.messages-page.messages-page .messages-compose textarea::placeholder {
    color: #7b8190 !important;
    opacity: 1 !important;
}

/* Discover refresh: keep the existing data/actions, but give the page a
   light, compact presentation. This is intentionally scoped to discover.php. */
body.discover-page:not(.admin-page) {
    background: #f4f5f8 !important;
    color: #17181d !important;
}

body.discover-page:not(.admin-page) .discover-topbar {
    background: rgba(255, 255, 255, .96) !important;
    border-bottom: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(31, 24, 45, .05) !important;
}

body.discover-page:not(.admin-page) .discover-topbar-inner--compact {
    min-height: 66px !important;
    padding-block: 9px !important;
    padding-inline: clamp(14px, 3vw, 28px) !important;
    overflow: visible !important;
}

body.discover-page:not(.admin-page) .discover-brand-wordmark strong,
body.discover-page:not(.admin-page) .discover-brand-wordmark .brand-sex {
    color: #111827 !important;
    opacity: 1 !important;
}

body.discover-page:not(.admin-page) .discover-brand-wordmark .brand-fan {
    color: #b21f91 !important;
    opacity: 1 !important;
}

body.discover-page:not(.admin-page) .discover-brand-wordmark small {
    color: #667085 !important;
    opacity: 1 !important;
}

body.discover-page:not(.admin-page) .discover-topbar .home-icon-btn,
body.discover-page:not(.admin-page) .discover-topbar .home-avatar-btn {
    background: #fff !important;
    border-color: #dfe3ea !important;
    color: #4b5563 !important;
    box-shadow: none !important;
}

body.discover-page:not(.admin-page) .discover-topbar .home-icon-btn--compose {
    background: linear-gradient(135deg, #f5eaff, #fff0f7) !important;
    border-color: #e6c9f2 !important;
    color: #8d249f !important;
}

body.discover-page:not(.admin-page) .discover-main {
    width: min(1180px, calc(100% - 40px)) !important;
    max-width: none !important;
    min-height: 0 !important;
    margin-inline: auto !important;
    padding-top: 20px !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
}

body.discover-page:not(.admin-page) .discover-shell {
    display: grid !important;
    gap: 18px !important;
    margin: 0 !important;
}

body.discover-page:not(.admin-page) .discover-head {
    align-items: flex-end !important;
    padding: 0 2px 2px !important;
}

body.discover-page:not(.admin-page) .discover-head__copy {
    gap: 7px !important;
}

body.discover-page:not(.admin-page) .discover-head__eyebrow,
body.discover-page:not(.admin-page) .discover-section__eyebrow,
body.discover-page:not(.admin-page) .discover-banner__eyebrow {
    padding: 5px 10px !important;
    border: 1px solid #ead8f5 !important;
    background: #f7edff !important;
    color: #7c2c91 !important;
    font-size: .68rem !important;
    letter-spacing: .06em !important;
}

body.discover-page:not(.admin-page) .discover-head h1,
body.discover-page:not(.admin-page) .discover-section__head h2,
body.discover-page:not(.admin-page) .discover-section-head h2 {
    color: #111827 !important;
    opacity: 1 !important;
}

body.discover-page:not(.admin-page) .discover-head h1 {
    margin-top: 7px !important;
    font-size: clamp(1.7rem, 3vw, 2.35rem) !important;
}

body.discover-page:not(.admin-page) .discover-head p,
body.discover-page:not(.admin-page) .discover-banner__copy p {
    color: #667085 !important;
    opacity: 1 !important;
    line-height: 1.5 !important;
}

body.discover-page:not(.admin-page) .discover-filter-button {
    min-height: 40px !important;
    padding-inline: 17px !important;
    border: 0 !important;
    border-radius: 11px !important;
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    color: #fff !important;
    box-shadow: 0 8px 18px rgba(124, 58, 237, .18) !important;
}

body.discover-page:not(.admin-page) .discover-filters,
body.discover-page:not(.admin-page) .discover-section,
body.discover-page:not(.admin-page) .discover-banner,
body.discover-page:not(.admin-page) .discover-empty,
body.discover-page:not(.admin-page) .discover-mini.card {
    background: #fff !important;
    border: 1px solid #e1e5eb !important;
    border-radius: 18px !important;
    box-shadow: 0 7px 20px rgba(31, 24, 45, .055) !important;
    color: #17181d !important;
    backdrop-filter: none !important;
}

body.discover-page:not(.admin-page) .discover-filters,
body.discover-page:not(.admin-page) .discover-section {
    padding: 18px 20px !important;
}

body.discover-page:not(.admin-page) .discover-filter-form label {
    color: #344054 !important;
}

body.discover-page:not(.admin-page) .discover-filter-form input,
body.discover-page:not(.admin-page) .discover-filter-form select {
    background: #fff !important;
    border-color: #dfe3ea !important;
    color: #20232a !important;
}

body.discover-page:not(.admin-page) .discover-section__head,
body.discover-page:not(.admin-page) .discover-section-head {
    align-items: center !important;
}

body.discover-page:not(.admin-page) .discover-section__head h2,
body.discover-page:not(.admin-page) .discover-section-head h2 {
    margin-top: 7px !important;
    font-size: clamp(1.18rem, 2vw, 1.48rem) !important;
}

body.discover-page:not(.admin-page) .discover-section__link {
    color: #8b2c9f !important;
    font-weight: 800 !important;
}

body.discover-page:not(.admin-page) .discover-online-strip {
    display: flex !important;
    gap: 15px !important;
    margin-top: 15px !important;
    padding: 1px 2px 5px !important;
    overflow-x: auto !important;
    scrollbar-width: thin !important;
}

body.discover-page:not(.admin-page) .discover-online-chip {
    flex: 0 0 92px !important;
    gap: 6px !important;
    color: #20232a !important;
    text-decoration: none !important;
}

body.discover-page:not(.admin-page) .discover-online-chip__ring {
    width: 74px !important;
    height: 74px !important;
    padding: 3px !important;
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    box-shadow: 0 5px 12px rgba(124, 58, 237, .14) !important;
}

body.discover-page:not(.admin-page) .discover-online-chip__ring.is-live {
    background: linear-gradient(135deg, #16a34a, #8b5cf6) !important;
}

body.discover-page:not(.admin-page) .discover-online-chip__avatar {
    border: 2px solid #fff !important;
    background-color: #f3e8ff !important;
    color: #7c3aed !important;
}

body.discover-page:not(.admin-page) .discover-online-chip strong {
    max-width: 100% !important;
    overflow: hidden !important;
    color: #20232a !important;
    font-size: .78rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-online-chip small {
    max-width: 100% !important;
    overflow: hidden !important;
    color: #667085 !important;
    font-size: .68rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-chip {
    border-color: #e5d7f1 !important;
    background: #faf7fd !important;
    color: #6e287f !important;
}

body.discover-page:not(.admin-page) .discover-chip.is-live {
    border-color: #bbf7d0 !important;
    background: #f0fdf4 !important;
    color: #15803d !important;
}

body.discover-page:not(.admin-page) .discover-chip.is-premium {
    border-color: #ead7ff !important;
    background: #faf5ff !important;
    color: #7e22ce !important;
}

body.discover-page:not(.admin-page) .discover-chip.is-verified {
    border-color: #bfdbfe !important;
    background: #eff6ff !important;
    color: #1d4ed8 !important;
}

body.discover-page:not(.admin-page) .discover-banner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    min-height: 0 !important;
    padding: 14px 18px !important;
    background: linear-gradient(100deg, #fff, #fff7fc) !important;
    overflow: hidden !important;
}

body.discover-page:not(.admin-page) .discover-banner__copy {
    display: grid !important;
    gap: 5px !important;
}

body.discover-page:not(.admin-page) .discover-banner__copy strong {
    color: #25232b !important;
    font-size: 1rem !important;
}

body.discover-page:not(.admin-page) .discover-banner__copy p {
    margin: 0 !important;
    font-size: .86rem !important;
}

body.discover-page:not(.admin-page) .discover-banner .btn-primary {
    flex: 0 0 auto !important;
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    color: #fff !important;
}

body.discover-page:not(.admin-page) .discover-banner__close {
    top: 8px !important;
    right: 8px !important;
    width: 26px !important;
    height: 26px !important;
    border-color: #eadde9 !important;
    background: #fff !important;
    color: #6b7280 !important;
}

body.discover-page:not(.admin-page) .discover-section-head {
    padding-inline: 2px !important;
}

body.discover-page:not(.admin-page) .discover-mosaic {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-rows: 190px !important;
    grid-auto-flow: dense !important;
    gap: 12px !important;
}

body.discover-page:not(.admin-page) .discover-tile {
    position: relative !important;
    display: block !important;
    min-width: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e1e5eb !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 7px 18px rgba(31, 24, 45, .06) !important;
}

body.discover-page:not(.admin-page) .discover-tile__frame,
body.discover-page:not(.admin-page) .discover-tile.is-tall .discover-tile__frame,
body.discover-page:not(.admin-page) .discover-tile.is-wide .discover-tile__frame {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
    background: #eef0f3 !important;
    box-shadow: none !important;
}

body.discover-page:not(.admin-page) .discover-tile__media {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
    background: #eef0f3 !important;
}

body.discover-page:not(.admin-page) .discover-tile__placeholder {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background: linear-gradient(135deg, #f7edff, #fff0f7) !important;
}

body.discover-page:not(.admin-page) .discover-tile__placeholder-mark {
    border-color: #e4c9f0 !important;
    background: #fff !important;
    color: #9b3ab4 !important;
}

body.discover-page:not(.admin-page) .discover-tile__overlay {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    padding: 42px 12px 12px !important;
    border-radius: 0 !important;
    background: linear-gradient(180deg, transparent 0%, rgba(15, 18, 28, .82) 100%) !important;
    color: #fff !important;
}

body.discover-page:not(.admin-page) .discover-tile:has(.discover-tile__caption) .discover-tile__overlay {
    padding-bottom: 48px !important;
}

body.discover-page:not(.admin-page) .discover-tile__author small {
    color: rgba(255, 255, 255, .84) !important;
}

body.discover-page:not(.admin-page) .discover-tile__caption {
    position: absolute !important;
    z-index: 4 !important;
    right: 12px !important;
    bottom: 12px !important;
    left: 12px !important;
    margin: 0 !important;
    overflow: hidden !important;
    color: #fff !important;
    font-size: .82rem !important;
    line-height: 1.3 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-tile__actions {
    top: 10px !important;
    left: 10px !important;
    z-index: 5 !important;
}

body.discover-page:not(.admin-page) .discover-action {
    width: 30px !important;
    height: 30px !important;
    border-color: rgba(255, 255, 255, .35) !important;
    background: rgba(20, 23, 35, .64) !important;
    color: #fff !important;
}

body.discover-page:not(.admin-page) .discover-tile__count {
    top: 10px !important;
    right: 10px !important;
    z-index: 5 !important;
    background: rgba(20, 23, 35, .68) !important;
    color: #fff !important;
}

body.discover-page:not(.admin-page) .discover-mini-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.discover-page:not(.admin-page) .discover-nearby {
    display: grid !important;
    gap: 12px !important;
}

body.discover-page:not(.admin-page) .discover-mini {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
    min-width: 0 !important;
    min-height: 92px !important;
    padding: 12px !important;
    border-radius: 15px !important;
}

body.discover-page:not(.admin-page) .discover-mini__media {
    width: 64px !important;
    height: 68px !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}

body.discover-page:not(.admin-page) .discover-mini__avatar {
    width: 100% !important;
    height: 100% !important;
    border-color: #ead8f5 !important;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3) !important;
    color: #8b2c9f !important;
}

body.discover-page:not(.admin-page) .discover-mini__copy {
    display: grid !important;
    min-width: 0 !important;
    gap: 4px !important;
}

body.discover-page:not(.admin-page) .discover-mini__copy strong {
    overflow: hidden !important;
    color: #20232a !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-mini__copy small {
    overflow: hidden !important;
    color: #667085 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-mini__tag {
    padding: 4px 8px !important;
    border-color: #ead8f5 !important;
    background: #faf5ff !important;
    color: #7c2c91 !important;
    font-size: .64rem !important;
}

body.discover-page:not(.admin-page) .discover-mini__actions {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    display: flex !important;
    gap: 4px !important;
    opacity: 0 !important;
    transition: opacity .16s ease !important;
}

body.discover-page:not(.admin-page) .discover-mini:hover .discover-mini__actions,
body.discover-page:not(.admin-page) .discover-mini:focus-within .discover-mini__actions {
    opacity: 1 !important;
}

body.discover-page:not(.admin-page) .discover-empty {
    grid-column: 1 / -1 !important;
    padding: 20px !important;
}

body.discover-page:not(.admin-page) .discover-empty strong {
    color: #20232a !important;
}

body.discover-page:not(.admin-page) .discover-empty p {
    margin: 5px 0 0 !important;
    color: #667085 !important;
}

@media (max-width: 900px) {
    body.discover-page:not(.admin-page) .discover-mosaic,
    body.discover-page:not(.admin-page) .discover-mini-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    body.discover-page:not(.admin-page) .discover-main {
        width: calc(100% - 24px) !important;
        padding-top: 14px !important;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.discover-page:not(.admin-page) .discover-topbar-inner--compact {
        min-height: 60px !important;
        padding-inline: 12px !important;
    }

    body.discover-page:not(.admin-page) .discover-head {
        align-items: flex-start !important;
    }

    body.discover-page:not(.admin-page) .discover-head p {
        max-width: 46ch !important;
        font-size: .86rem !important;
    }

    body.discover-page:not(.admin-page) .discover-section,
    body.discover-page:not(.admin-page) .discover-filters {
        padding: 15px !important;
    }

    body.discover-page:not(.admin-page) .discover-banner {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 11px !important;
        padding: 14px 15px !important;
    }

    body.discover-page:not(.admin-page) .discover-banner .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }

    body.discover-page:not(.admin-page) .discover-mosaic,
    body.discover-page:not(.admin-page) .discover-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.discover-page:not(.admin-page) .discover-mosaic {
        grid-auto-rows: 155px !important;
    }

    body.discover-page:not(.admin-page) .discover-tile.is-tall,
    body.discover-page:not(.admin-page) .discover-tile.is-wide {
        grid-column: auto !important;
        grid-row: auto !important;
    }

    body.discover-page:not(.admin-page) .discover-mini {
        grid-template-columns: 54px minmax(0, 1fr) !important;
        gap: 9px !important;
        padding: 9px !important;
    }

    body.discover-page:not(.admin-page) .discover-mini__media {
        width: 54px !important;
        height: 58px !important;
    }

    body.discover-page:not(.admin-page) .discover-mini__actions {
        display: none !important;
    }
}

/* Swipe discovery deck. It uses the existing discovery profiles and the
   existing like/pass POST flow; these rules only define the new presentation. */
body.discover-page:not(.admin-page) .discover-swipe-section {
    padding: 20px !important;
    background: linear-gradient(145deg, #fff, #fffafe) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-section__head {
    align-items: flex-start !important;
}

body.discover-page:not(.admin-page) .discover-swipe-section__intro {
    margin: 7px 0 0 !important;
    color: #667085 !important;
    font-size: .88rem !important;
}

body.discover-page:not(.admin-page) .discover-swipe-section__count {
    flex: 0 0 auto !important;
    padding: 7px 10px !important;
    border: 1px solid #ead8f5 !important;
    border-radius: 999px !important;
    background: #faf5ff !important;
    color: #7c2c91 !important;
    font-size: .74rem !important;
    font-weight: 800 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-stage {
    position: relative !important;
    width: min(100%, 500px) !important;
    height: 620px !important;
    margin: 18px auto 0 !important;
    isolation: isolate !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card {
    position: absolute !important;
    inset: 0 !important;
    display: block !important;
    overflow: hidden !important;
    border: 1px solid #e1e5eb !important;
    border-radius: 22px !important;
    background: #fff !important;
    box-shadow: 0 16px 34px rgba(44, 24, 58, .12) !important;
    opacity: 1 !important;
    transform-origin: 50% 100% !important;
    transition: transform .28s ease, opacity .28s ease, box-shadow .18s ease !important;
    will-change: transform, opacity !important;
    cursor: grab !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card:nth-of-type(1) {
    z-index: 4 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card:nth-of-type(2) {
    z-index: 3 !important;
    transform: scale(.97) translateY(9px) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card:nth-of-type(3) {
    z-index: 2 !important;
    transform: scale(.94) translateY(18px) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card:nth-of-type(n+4) {
    z-index: 1 !important;
    transform: scale(.91) translateY(27px) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card.is-dragging {
    transition: none !important;
    cursor: grabbing !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card.is-swiping-like {
    transform: translateX(125%) rotate(16deg) !important;
    opacity: 0 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card.is-swiping-pass {
    transform: translateX(-125%) rotate(-16deg) !important;
    opacity: 0 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card.is-dismissed {
    z-index: 0 !important;
    pointer-events: none !important;
    opacity: 0 !important;
    transform: scale(.88) translateY(20px) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card.has-swipe-error {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .18), 0 16px 34px rgba(44, 24, 58, .12) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__link {
    display: grid !important;
    grid-template-rows: minmax(320px, 58%) minmax(0, 1fr) !important;
    width: 100% !important;
    height: 100% !important;
    color: inherit !important;
    text-decoration: none !important;
    touch-action: pan-y !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__media {
    position: relative !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__media::after {
    position: absolute !important;
    inset: 0 !important;
    z-index: 1 !important;
    display: block !important;
    background: linear-gradient(180deg, rgba(13, 15, 25, .04) 42%, rgba(13, 15, 25, .7) 100%) !important;
    content: "" !important;
    pointer-events: none !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__media-content {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
    object-position: center !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__placeholder {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #8b2c9f !important;
    font-size: 3.5rem !important;
    font-weight: 900 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__status,
body.discover-page:not(.admin-page) .discover-swipe-card__premium {
    position: absolute !important;
    z-index: 2 !important;
    top: 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 7px 10px !important;
    border: 1px solid rgba(255, 255, 255, .42) !important;
    border-radius: 999px !important;
    background: rgba(23, 24, 34, .48) !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
    backdrop-filter: blur(8px) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__status {
    left: 14px !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__status i {
    width: 7px !important;
    height: 7px !important;
    border-radius: 50% !important;
    background: #98a2b3 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__status.is-online i {
    background: #34d399 !important;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .16) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__premium {
    right: 14px !important;
    border-color: rgba(255, 214, 104, .62) !important;
    background: rgba(97, 43, 117, .55) !important;
    color: #ffe08a !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__body {
    display: grid !important;
    align-content: center !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 19px 22px 20px !important;
    background: #fff !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__title-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__title-row h3 {
    margin: 0 !important;
    overflow: hidden !important;
    color: #17181d !important;
    font-size: clamp(1.2rem, 2.5vw, 1.55rem) !important;
    letter-spacing: -.025em !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__verified {
    display: inline-grid !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    color: #fff !important;
    font-size: .75rem !important;
    font-weight: 900 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__meta {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 14px !important;
    margin: 0 !important;
    color: #667085 !important;
    font-size: .82rem !important;
}

body.discover-page:not(.admin-page) .discover-swipe-card__bio {
    display: -webkit-box !important;
    margin: 2px 0 0 !important;
    overflow: hidden !important;
    color: #475467 !important;
    font-size: .88rem !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-actions {
    display: flex !important;
    justify-content: center !important;
    gap: 18px !important;
    margin: 18px auto 0 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-action {
    display: inline-grid !important;
    place-items: center !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    transition: transform .16s ease, box-shadow .16s ease !important;
}

body.discover-page:not(.admin-page) .discover-swipe-action:hover,
body.discover-page:not(.admin-page) .discover-swipe-action:focus-visible {
    transform: translateY(-2px) scale(1.04) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-action.is-pass {
    border: 1px solid #f3c1d2 !important;
    background: #fff7fa !important;
    color: #d11b62 !important;
    box-shadow: 0 7px 16px rgba(209, 27, 98, .12) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-action.is-like {
    border: 0 !important;
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    color: #fff !important;
    box-shadow: 0 9px 20px rgba(124, 58, 237, .23) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-hint {
    margin: 10px 0 0 !important;
    color: #98a2b3 !important;
    font-size: .74rem !important;
    text-align: center !important;
}

body.discover-page:not(.admin-page) .discover-swipe-empty {
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 6px !important;
    height: 100% !important;
    padding: 22px !important;
    border: 1px dashed #dbc4e8 !important;
    border-radius: 18px !important;
    background: #fcf9ff !important;
    color: #667085 !important;
    text-align: center !important;
}

body.discover-page:not(.admin-page) .discover-swipe-empty strong {
    color: #4b1c60 !important;
}

body.discover-page:not(.admin-page) .discover-swipe-empty.is-visible {
    height: 300px !important;
    margin-top: 18px !important;
}

body.discover-page:not(.admin-page) .discover-swipe-feedback {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 20 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 150px !important;
    padding: 10px 15px !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translate(-50%, -50%) scale(.92) !important;
    transition: opacity .18s ease, transform .18s ease !important;
    white-space: nowrap !important;
}

body.discover-page:not(.admin-page) .discover-swipe-feedback.is-visible {
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-feedback.is-like {
    border-color: #a7f3d0 !important;
    background: rgba(240, 253, 244, .96) !important;
    color: #15803d !important;
    box-shadow: 0 10px 24px rgba(22, 163, 74, .18) !important;
}

body.discover-page:not(.admin-page) .discover-swipe-feedback.is-pass {
    border-color: #fecdd3 !important;
    background: rgba(255, 247, 248, .96) !important;
    color: #be123c !important;
    box-shadow: 0 10px 24px rgba(225, 29, 72, .16) !important;
}

@media (max-width: 680px) {
    body.discover-page:not(.admin-page) .discover-swipe-section {
        padding: 15px !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-section__head {
        gap: 10px !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-section__count {
        margin-left: auto !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-stage {
        height: min(600px, calc(100svh - 250px)) !important;
        min-height: 500px !important;
        margin-top: 14px !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-card__link {
        grid-template-rows: minmax(265px, 58%) minmax(0, 1fr) !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-card__body {
        padding: 16px !important;
    }

    body.discover-page:not(.admin-page) .discover-swipe-actions {
        margin-top: 14px !important;
    }
}

/* Live page */
body.live-page:not(.admin-page) {
    background: #f4f5f8 !important;
    color: #17181d !important;
}

body.live-page:not(.admin-page) .discover-main {
    width: min(1240px, calc(100% - 40px)) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-top: 22px !important;
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    background: transparent !important;
}

body.live-page:not(.admin-page) .live-shell {
    display: grid !important;
    gap: 18px !important;
}

body.live-page:not(.admin-page) .live-page-head {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between !important;
    gap: 16px !important;
}

body.live-page:not(.admin-page) .live-eyebrow {
    display: inline-flex !important;
    padding: 5px 10px !important;
    border: 1px solid #ead8f5 !important;
    border-radius: 999px !important;
    background: #f8efff !important;
    color: #7c2c91 !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
    letter-spacing: .06em !important;
    text-transform: uppercase !important;
}

body.live-page:not(.admin-page) .live-page-head h1 {
    margin: 8px 0 0 !important;
    color: #111827 !important;
    font-size: clamp(1.75rem, 3vw, 2.35rem) !important;
    letter-spacing: -.04em !important;
}

body.live-page:not(.admin-page) .live-page-head p {
    margin: 6px 0 0 !important;
    color: #667085 !important;
}

body.live-page:not(.admin-page) .live-secondary-link {
    color: #8b2c9f !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

body.live-page:not(.admin-page) .live-filter-bar,
body.live-page:not(.admin-page) .live-studio,
body.live-page:not(.admin-page) .live-viewer,
body.live-page:not(.admin-page) .live-chat {
    border: 1px solid #e1e5eb !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 7px 20px rgba(31, 24, 45, .055) !important;
}

body.live-page:not(.admin-page) .live-filter-bar {
    display: flex !important;
    align-items: end !important;
    gap: 12px !important;
    padding: 14px 16px !important;
}

body.live-page:not(.admin-page) .live-filter-bar label,
body.live-page:not(.admin-page) .live-device-grid label,
body.live-page:not(.admin-page) .live-visibility {
    display: grid !important;
    gap: 6px !important;
    color: #344054 !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
}

body.live-page:not(.admin-page) .live-filter-bar select,
body.live-page:not(.admin-page) .live-device-grid select,
body.live-page:not(.admin-page) .live-visibility select {
    min-height: 40px !important;
    min-width: 190px !important;
    padding: 8px 10px !important;
    border: 1px solid #dfe3ea !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #20232a !important;
}

body.live-page:not(.admin-page) .live-list {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 14px !important;
}

body.live-page:not(.admin-page) .live-card {
    min-width: 0 !important;
    overflow: hidden !important;
    border: 1px solid #e1e5eb !important;
    border-radius: 16px !important;
    background: #fff !important;
    color: #17181d !important;
    text-decoration: none !important;
    box-shadow: 0 7px 18px rgba(31, 24, 45, .055) !important;
    transition: transform .16s ease, box-shadow .16s ease !important;
}

body.live-page:not(.admin-page) .live-card:hover,
body.live-page:not(.admin-page) .live-card:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 12px 24px rgba(124, 58, 237, .13) !important;
}

body.live-page:not(.admin-page) .live-card__media {
    position: relative !important;
    aspect-ratio: 4 / 3 !important;
    overflow: hidden !important;
    background: linear-gradient(135deg, #f3e8ff, #fce7f3) !important;
}

body.live-page:not(.admin-page) .live-card__media img {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

body.live-page:not(.admin-page) .live-card__media > span:not(.live-card__badge) {
    display: grid !important;
    place-items: center !important;
    width: 100% !important;
    height: 100% !important;
    color: #8b2c9f !important;
    font-size: 2.4rem !important;
    font-weight: 900 !important;
}

body.live-page:not(.admin-page) .live-card__badge,
body.live-page:not(.admin-page) .live-card__viewers {
    position: absolute !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    padding: 6px 8px !important;
    border-radius: 999px !important;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
}

body.live-page:not(.admin-page) .live-card__badge {
    top: 10px !important;
    left: 10px !important;
    background: rgba(190, 24, 93, .9) !important;
}

body.live-page:not(.admin-page) .live-card__badge i {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background: #86efac !important;
}

body.live-page:not(.admin-page) .live-card__viewers {
    right: 10px !important;
    bottom: 10px !important;
    background: rgba(17, 24, 39, .7) !important;
}

body.live-page:not(.admin-page) .live-card__body {
    display: grid !important;
    gap: 4px !important;
    padding: 12px !important;
}

body.live-page:not(.admin-page) .live-card__body strong {
    overflow: hidden !important;
    color: #20232a !important;
    font-size: .96rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.live-page:not(.admin-page) .live-card__body strong em,
body.live-page:not(.admin-page) .live-verified {
    display: inline-grid !important;
    place-items: center !important;
    width: 17px !important;
    height: 17px !important;
    margin-left: 4px !important;
    border-radius: 50% !important;
    background: #2563eb !important;
    color: #fff !important;
    font-size: .65rem !important;
    font-style: normal !important;
}

body.live-page:not(.admin-page) .live-card__body span,
body.live-page:not(.admin-page) .live-card__body small {
    overflow: hidden !important;
    color: #667085 !important;
    font-size: .76rem !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body.live-page:not(.admin-page) .live-card__body small {
    color: #98a2b3 !important;
}

body.live-page:not(.admin-page) .live-empty {
    display: grid !important;
    justify-items: center !important;
    gap: 7px !important;
    padding: 62px 20px !important;
    border: 1px dashed #dbc4e8 !important;
    border-radius: 18px !important;
    background: #fcf9ff !important;
    text-align: center !important;
}

body.live-page:not(.admin-page) .live-empty__icon {
    display: grid !important;
    place-items: center !important;
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background: #f5eaff !important;
    color: #a21caf !important;
    font-size: 1.25rem !important;
}

body.live-page:not(.admin-page) .live-empty h2,
body.live-page:not(.admin-page) .live-empty p {
    margin: 0 !important;
}

body.live-page:not(.admin-page) .live-empty h2 {
    color: #4b1c60 !important;
    font-size: 1.1rem !important;
}

body.live-page:not(.admin-page) .live-empty p {
    color: #667085 !important;
}

body.live-page:not(.admin-page) .live-studio,
body.live-page:not(.admin-page) .live-viewer {
    overflow: hidden !important;
}

body.live-page:not(.admin-page) .live-studio__video-wrap,
body.live-page:not(.admin-page) .live-viewer__video-wrap {
    position: relative !important;
    aspect-ratio: 16 / 9 !important;
    overflow: hidden !important;
    background: #151322 !important;
}

body.live-page:not(.admin-page) .live-studio__video,
body.live-page:not(.admin-page) .live-viewer__video {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    object-fit: cover !important;
}

body.live-page:not(.admin-page) .live-studio__video-empty,
body.live-page:not(.admin-page) .live-viewer__waiting {
    position: absolute !important;
    inset: 0 !important;
    display: grid !important;
    place-items: center !important;
    align-content: center !important;
    gap: 6px !important;
    padding: 20px !important;
    color: #fff !important;
    text-align: center !important;
}

body.live-page:not(.admin-page) .live-studio__video-empty span {
    color: #e879f9 !important;
    font-size: 2rem !important;
}

body.live-page:not(.admin-page) .live-studio__video-empty small,
body.live-page:not(.admin-page) .live-viewer__waiting span {
    color: #cbd5e1 !important;
}

body.live-page:not(.admin-page) .live-studio__on-air {
    position: absolute !important;
    top: 14px !important;
    left: 14px !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: #be185d !important;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 900 !important;
}

body.live-page:not(.admin-page) .live-studio__viewer-count {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    padding: 6px 9px !important;
    border-radius: 999px !important;
    background: rgba(17, 24, 39, .68) !important;
    color: #fff !important;
    font-size: .68rem !important;
    font-weight: 800 !important;
}

body.live-page:not(.admin-page) .live-studio__body {
    display: grid !important;
    gap: 16px !important;
    padding: 20px !important;
}

body.live-page:not(.admin-page) .live-studio__status {
    color: #667085 !important;
    font-size: .88rem !important;
}

body.live-page:not(.admin-page) .live-studio__status.is-error,
body.live-page:not(.admin-page) .live-viewer__waiting.is-error strong {
    color: #be123c !important;
}

body.live-page:not(.admin-page) .live-device-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
}

body.live-page:not(.admin-page) .live-visibility select {
    width: min(100%, 360px) !important;
}

body.live-page:not(.admin-page) .live-studio__actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

body.live-page:not(.admin-page) .live-studio__actions .btn,
body.live-page:not(.admin-page) .live-filter-bar .btn {
    border-radius: 10px !important;
}

body.live-page:not(.admin-page) .live-studio__actions .btn-primary,
body.live-page:not(.admin-page) .live-page-head .btn-primary {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    color: #fff !important;
}

body.live-page:not(.admin-page) .live-studio__actions .btn-danger {
    border: 0 !important;
    background: #be123c !important;
    color: #fff !important;
}

body.live-page:not(.admin-page) .live-viewer__meta {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    padding: 15px 18px !important;
}

body.live-page:not(.admin-page) .live-viewer__meta strong {
    color: #20232a !important;
}

body.live-page:not(.admin-page) .live-viewer__meta small {
    display: block !important;
    margin-top: 4px !important;
    color: #667085 !important;
}

body.live-page:not(.admin-page) .live-chat {
    display: grid !important;
    gap: 12px !important;
    padding: 16px !important;
}

body.live-page:not(.admin-page) .live-chat__head {
    display: flex !important;
    justify-content: space-between !important;
    color: #20232a !important;
}

body.live-page:not(.admin-page) .live-chat__head span {
    color: #98a2b3 !important;
    font-size: .78rem !important;
}

body.live-page:not(.admin-page) .live-chat__messages {
    display: grid !important;
    gap: 9px !important;
    max-height: 240px !important;
    overflow-y: auto !important;
}

body.live-page:not(.admin-page) .live-chat__message {
    display: flex !important;
    align-items: flex-start !important;
    gap: 8px !important;
    color: #475467 !important;
    font-size: .84rem !important;
}

body.live-page:not(.admin-page) .live-chat__avatar {
    display: grid !important;
    flex: 0 0 auto !important;
    place-items: center !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #8b5cf6, #ec4899) !important;
    color: #fff !important;
    font-size: .72rem !important;
    font-weight: 800 !important;
}

body.live-page:not(.admin-page) .live-chat__message strong,
body.live-page:not(.admin-page) .live-chat__message p {
    margin: 0 !important;
}

body.live-page:not(.admin-page) .live-chat__message strong {
    display: block !important;
    color: #20232a !important;
    font-size: .76rem !important;
}

body.live-page:not(.admin-page) .live-chat__form {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 8px !important;
}

body.live-page:not(.admin-page) .live-chat__form input {
    min-height: 40px !important;
    padding: 8px 11px !important;
    border: 1px solid #dfe3ea !important;
    border-radius: 10px !important;
    color: #20232a !important;
}

body.live-page:not(.admin-page) .live-chat__form button {
    min-width: 72px !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    color: #fff !important;
    cursor: pointer !important;
    font-weight: 800 !important;
}

/* Live state visibility: the connection events own these states. */
body.live-page:not(.admin-page) .live-studio [hidden],
body.live-page:not(.admin-page) .live-viewer [hidden] {
    display: none !important;
}

body.live-page:not(.admin-page) .live-studio.is-live .live-studio__video-empty,
body.live-page:not(.admin-page) .live-studio.is-live [data-live-preview],
body.live-page:not(.admin-page) .live-studio.is-live [data-live-start],
body.live-page:not(.admin-page) .live-studio.is-live .live-device-grid,
body.live-page:not(.admin-page) .live-studio.is-live .live-visibility {
    display: none !important;
}

body.live-page:not(.admin-page) .live-studio.is-live [data-live-end],
body.live-page:not(.admin-page) .live-studio.is-live [data-live-on-air],
body.live-page:not(.admin-page) .live-studio.is-live [data-live-viewer-count] {
    display: inline-flex !important;
}

body.live-page:not(.admin-page) .live-studio:not(.is-live) [data-live-end],
body.live-page:not(.admin-page) .live-studio:not(.is-live) [data-live-on-air],
body.live-page:not(.admin-page) .live-studio:not(.is-live) [data-live-viewer-count] {
    display: none !important;
}

body.live-page:not(.admin-page) .live-studio.is-live .live-studio__status {
    color: #15803d !important;
    font-weight: 800 !important;
}

body.live-page:not(.admin-page) .live-viewer.is-connected .live-viewer__waiting {
    display: none !important;
}

body.live-page:not(.admin-page) [data-live-directory] [hidden] {
    display: none !important;
}

@media (max-width: 920px) {
    body.live-page:not(.admin-page) .live-list {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 680px) {
    body.live-page:not(.admin-page) .discover-main {
        width: calc(100% - 24px) !important;
        padding-top: 14px !important;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)) !important;
    }

    body.live-page:not(.admin-page) .live-page-head {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.live-page:not(.admin-page) .live-page-head .btn,
    body.live-page:not(.admin-page) .live-page-head .live-secondary-link {
        align-self: stretch !important;
        text-align: center !important;
    }

    body.live-page:not(.admin-page) .live-filter-bar {
        align-items: stretch !important;
        flex-direction: column !important;
    }

    body.live-page:not(.admin-page) .live-filter-bar select {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.live-page:not(.admin-page) .live-list {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 9px !important;
    }

    body.live-page:not(.admin-page) .live-card__body {
        padding: 10px !important;
    }

    body.live-page:not(.admin-page) .live-card__body strong {
        font-size: .86rem !important;
    }

    body.live-page:not(.admin-page) .live-card__body span,
    body.live-page:not(.admin-page) .live-card__body small {
        font-size: .68rem !important;
    }

    body.live-page:not(.admin-page) .live-studio__body,
    body.live-page:not(.admin-page) .live-chat {
        padding: 14px !important;
    }

    body.live-page:not(.admin-page) .live-shell,
    body.live-page:not(.admin-page) .live-chat,
    body.live-page:not(.admin-page) .live-chat__form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.live-page:not(.admin-page) .live-chat {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.live-page:not(.admin-page) .live-chat__form {
        grid-template-columns: minmax(0, 1fr) 72px !important;
    }

    body.live-page:not(.admin-page) .live-chat__form input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    body.live-page:not(.admin-page) .live-chat__form button {
        width: 72px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.live-page:not(.admin-page) .live-chat__message > div {
        min-width: 0 !important;
    }

    body.live-page:not(.admin-page) .live-chat__message p {
        overflow-wrap: anywhere !important;
    }

    body.live-page:not(.admin-page) .live-shell,
    body.live-page:not(.admin-page) .live-chat,
    body.live-page:not(.admin-page) .live-chat__form {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.live-page:not(.admin-page) .live-chat {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    body.live-page:not(.admin-page) .live-chat__form {
        grid-template-columns: minmax(0, 1fr) 72px !important;
    }

    body.live-page:not(.admin-page) .live-chat__form input {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        font-size: 16px !important;
    }

    body.live-page:not(.admin-page) .live-chat__form button {
        width: 72px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    body.live-page:not(.admin-page) .live-chat__message > div {
        min-width: 0 !important;
    }

    body.live-page:not(.admin-page) .live-chat__message p {
        overflow-wrap: anywhere !important;
    }

    body.live-page:not(.admin-page) .live-device-grid {
        grid-template-columns: 1fr !important;
    }

    body.live-page:not(.admin-page) .live-device-grid select,
    body.live-page:not(.admin-page) .live-visibility select {
        width: 100% !important;
        min-width: 0 !important;
    }

    body.live-page:not(.admin-page) .live-studio__actions {
        display: grid !important;
    }

    body.live-page:not(.admin-page) .live-studio__actions .btn {
        width: 100% !important;
    }

    body.live-page:not(.admin-page) .live-viewer__meta {
        align-items: flex-start !important;
        flex-direction: column !important;
    }

    body.live-page:not(.admin-page) .live-viewer__meta .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

/* Tá Afim? */
body.ta-afim-page {
    background: #f7f7fb;
}
body.ta-afim-page .ta-afim-location-link {
    position: relative;
}
body.ta-afim-page .ta-afim-location-link.is-ta-afim-active {
    color: #a21caf;
    border-color: rgba(192, 38, 211, .42);
    background: linear-gradient(135deg, rgba(192, 38, 211, .13), rgba(236, 72, 153, .12));
}
.ta-afim-location-dot {
    display: none;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #16a34a;
}
.ta-afim-location-link.is-ta-afim-active .ta-afim-location-dot {
    display: block;
}
.ta-afim-shell {
    width: min(100% - 28px, 980px);
    margin: 0 auto;
    padding: 22px 0 48px;
}
.ta-afim-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}
.ta-afim-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(168, 85, 247, .24);
    border-radius: 999px;
    color: #7e22ce;
    background: #fbf2ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ta-afim-head h1 {
    margin: 10px 0 6px;
    color: #171228;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}
.ta-afim-head p,
.ta-afim-safe,
.ta-afim-panel p,
.ta-afim-active__head p {
    color: #63708a;
    line-height: 1.5;
}
.ta-afim-head p {
    max-width: 650px;
    margin: 0;
}
.ta-afim-safe {
    padding: 12px 14px;
    border: 1px solid #eadcf4;
    border-radius: 14px;
    background: #fff;
    font-size: .82rem;
}
.ta-afim-panel,
.ta-afim-active {
    border: 1px solid #eadcf4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(62, 35, 88, .08);
}
.ta-afim-panel {
    padding: clamp(22px, 4vw, 34px);
}
.ta-afim-intro {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.ta-afim-panel__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d61b9c);
    font-size: 1.8rem;
}
.ta-afim-panel h2,
.ta-afim-active h2 {
    margin: 0;
    color: #241348;
    font-size: 1.2rem;
}
.ta-afim-intro p {
    max-width: 480px;
    margin: 9px auto 20px;
}
.ta-afim-error {
    margin: 14px 0 0;
    color: #b4234d !important;
    font-size: .86rem;
    font-weight: 700;
}
.ta-afim-setup {
    max-width: 760px;
    margin: 0 auto;
}
.ta-afim-panel__title {
    margin-bottom: 18px;
}
.ta-afim-panel__title h2 {
    margin-top: 8px;
}
.ta-afim-intentions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}
.ta-afim-intention {
    cursor: pointer;
}
.ta-afim-intention input {
    position: absolute;
    opacity: 0;
}
.ta-afim-intention span {
    display: block;
    height: 100%;
    padding: 13px 12px;
    border: 1px solid #e5dbea;
    border-radius: 13px;
    color: #3e3650;
    background: #fff;
    font-size: .88rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ta-afim-intention input:checked + span {
    border-color: #b026c5;
    color: #701a8d;
    background: #fff5ff;
    box-shadow: 0 0 0 3px rgba(192, 38, 211, .10);
}
.ta-afim-intention input:focus-visible + span {
    outline: 3px solid rgba(124, 58, 237, .25);
}
.ta-afim-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    color: #34284b;
    font-size: .9rem;
    font-weight: 700;
}
.ta-afim-duration select {
    min-width: 145px;
    padding: 10px 12px;
    border: 1px solid #ddd3e8;
    border-radius: 11px;
    color: #2e2541;
    background: #fff;
}
.ta-afim-setup .btn,
.ta-afim-intro .btn {
    min-height: 44px;
}
.ta-afim-active {
    padding: clamp(18px, 3vw, 28px);
}
.ta-afim-active__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee8f2;
}
.ta-afim-active__head h2 {
    margin-top: 8px;
}
.ta-afim-active__head p {
    margin: 6px 0 0;
    color: #8b269e;
    font-weight: 700;
}
.ta-afim-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 12px;
}
.ta-afim-results-head h2 {
    font-size: 1.05rem;
}
.ta-afim-results-head span {
    color: #7d6e8e;
    font-size: .82rem;
}
.ta-afim-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ta-afim-person {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #eee7f3;
    border-radius: 17px;
    background: #fff;
}
.ta-afim-person__main {
    display: flex;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.ta-afim-person__avatar {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #ede9fe, #fbcfe8);
}
.ta-afim-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ta-afim-person__avatar > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #7e22ce;
    font-weight: 800;
}
.ta-afim-person__avatar i {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
}
.ta-afim-person__copy {
    min-width: 0;
}
.ta-afim-person__copy h3 {
    overflow: hidden;
    margin: 0 0 4px;
    color: #21172f;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__copy h3 small {
    color: #877798;
    font-size: .75rem;
    font-weight: 500;
}
.ta-afim-person__copy p {
    overflow: hidden;
    margin: 2px 0;
    color: #657087;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__intent {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    color: #8b269e;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__distance {
    display: block;
    margin-top: 4px;
    color: #73758a;
    font-size: .72rem;
}
.ta-afim-person__message {
    width: 100%;
    justify-content: center;
}
.ta-afim-empty {
    display: grid;
    gap: 6px;
    padding: 34px 18px;
    border: 1px dashed #dec8e8;
    border-radius: 16px;
    color: #69728b;
    text-align: center;
}
.ta-afim-empty strong {
    color: #35124d;
}
.ta-afim-empty span {
    font-size: .86rem;
}
@media (max-width: 680px) {
    .ta-afim-shell {
        width: min(100% - 20px, 620px);
        padding-top: 16px;
    }
    .ta-afim-head {
        display: block;
    }
    .ta-afim-safe {
        margin-top: 12px;
    }
    .ta-afim-head h1 {
        font-size: 1.75rem;
    }
    .ta-afim-intentions,
    .ta-afim-results {
        grid-template-columns: 1fr;
    }
    .ta-afim-active__head {
        display: block;
    }
    .ta-afim-active__head .btn {
        width: 100%;
        margin-top: 14px;
    }
}
@media (min-width: 681px) {
    .ta-afim-intro .btn,
    .ta-afim-setup > .btn {
        min-width: 220px;
    }
}

/* Tá Afim? */
body.ta-afim-page {
    background: #f7f7fb;
}
body.ta-afim-page .ta-afim-location-link {
    position: relative;
}
body.ta-afim-page .ta-afim-location-link.is-ta-afim-active {
    color: #a21caf;
    border-color: rgba(192, 38, 211, .42);
    background: linear-gradient(135deg, rgba(192, 38, 211, .13), rgba(236, 72, 153, .12));
}
.ta-afim-location-dot {
    display: none;
    position: absolute;
    right: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #16a34a;
}
.ta-afim-location-link.is-ta-afim-active .ta-afim-location-dot {
    display: block;
}
.ta-afim-shell {
    width: min(100% - 28px, 980px);
    margin: 0 auto;
    padding: 22px 0 48px;
}
.ta-afim-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 310px);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}
.ta-afim-eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border: 1px solid rgba(168, 85, 247, .24);
    border-radius: 999px;
    color: #7e22ce;
    background: #fbf2ff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.ta-afim-head h1 {
    margin: 10px 0 6px;
    color: #171228;
    font-size: clamp(1.65rem, 4vw, 2.35rem);
}
.ta-afim-head p,
.ta-afim-safe,
.ta-afim-panel p,
.ta-afim-active__head p {
    color: #63708a;
    line-height: 1.5;
}
.ta-afim-head p {
    max-width: 650px;
    margin: 0;
}
.ta-afim-safe {
    padding: 12px 14px;
    border: 1px solid #eadcf4;
    border-radius: 14px;
    background: #fff;
    font-size: .82rem;
}
.ta-afim-panel,
.ta-afim-active {
    border: 1px solid #eadcf4;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(62, 35, 88, .08);
}
.ta-afim-panel {
    padding: clamp(22px, 4vw, 34px);
}
.ta-afim-intro {
    max-width: 620px;
    margin: 0 auto;
    text-align: center;
}
.ta-afim-panel__icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #8b5cf6, #d61b9c);
    font-size: 1.8rem;
}
.ta-afim-panel h2,
.ta-afim-active h2 {
    margin: 0;
    color: #241348;
    font-size: 1.2rem;
}
.ta-afim-intro p {
    max-width: 480px;
    margin: 9px auto 20px;
}
.ta-afim-error {
    margin: 14px 0 0;
    color: #b4234d !important;
    font-size: .86rem;
    font-weight: 700;
}
.ta-afim-setup {
    max-width: 760px;
    margin: 0 auto;
}
.ta-afim-panel__title {
    margin-bottom: 18px;
}
.ta-afim-panel__title h2 {
    margin-top: 8px;
}
.ta-afim-intentions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 20px;
}
.ta-afim-intention {
    cursor: pointer;
}
.ta-afim-intention input {
    position: absolute;
    opacity: 0;
}
.ta-afim-intention span {
    display: block;
    height: 100%;
    padding: 13px 12px;
    border: 1px solid #e5dbea;
    border-radius: 13px;
    color: #3e3650;
    background: #fff;
    font-size: .88rem;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ta-afim-intention input:checked + span {
    border-color: #b026c5;
    color: #701a8d;
    background: #fff5ff;
    box-shadow: 0 0 0 3px rgba(192, 38, 211, .10);
}
.ta-afim-intention input:focus-visible + span {
    outline: 3px solid rgba(124, 58, 237, .25);
}
.ta-afim-duration {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    color: #34284b;
    font-size: .9rem;
    font-weight: 700;
}
.ta-afim-duration select {
    min-width: 145px;
    padding: 10px 12px;
    border: 1px solid #ddd3e8;
    border-radius: 11px;
    color: #2e2541;
    background: #fff;
}
.ta-afim-setup .btn,
.ta-afim-intro .btn {
    min-height: 44px;
}
.ta-afim-active {
    padding: clamp(18px, 3vw, 28px);
}
.ta-afim-active__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eee8f2;
}
.ta-afim-active__head h2 {
    margin-top: 8px;
}
.ta-afim-active__head p {
    margin: 6px 0 0;
    color: #8b269e;
    font-weight: 700;
}
.ta-afim-results-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 12px;
}
.ta-afim-results-head h2 {
    font-size: 1.05rem;
}
.ta-afim-results-head span {
    color: #7d6e8e;
    font-size: .82rem;
}
.ta-afim-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.ta-afim-person {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    padding: 13px;
    border: 1px solid #eee7f3;
    border-radius: 17px;
    background: #fff;
}
.ta-afim-person__main {
    display: flex;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
.ta-afim-person__avatar {
    position: relative;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, #ede9fe, #fbcfe8);
}
.ta-afim-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ta-afim-person__avatar > span {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #7e22ce;
    font-weight: 800;
}
.ta-afim-person__avatar i {
    position: absolute;
    right: 2px;
    bottom: 2px;
    width: 11px;
    height: 11px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #22c55e;
}
.ta-afim-person__copy {
    min-width: 0;
}
.ta-afim-person__copy h3 {
    overflow: hidden;
    margin: 0 0 4px;
    color: #21172f;
    font-size: .98rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__copy h3 small {
    color: #877798;
    font-size: .75rem;
    font-weight: 500;
}
.ta-afim-person__copy p {
    overflow: hidden;
    margin: 2px 0;
    color: #657087;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__intent {
    display: block;
    overflow: hidden;
    margin-top: 8px;
    color: #8b269e;
    font-size: .78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ta-afim-person__distance {
    display: block;
    margin-top: 4px;
    color: #73758a;
    font-size: .72rem;
}
.ta-afim-person__message {
    width: 100%;
    justify-content: center;
}
.ta-afim-empty {
    display: grid;
    gap: 6px;
    padding: 34px 18px;
    border: 1px dashed #dec8e8;
    border-radius: 16px;
    color: #69728b;
    text-align: center;
}
.ta-afim-empty strong {
    color: #35124d;
}
.ta-afim-empty span {
    font-size: .86rem;
}
@media (max-width: 680px) {
    .ta-afim-shell {
        width: min(100% - 20px, 620px);
        padding-top: 16px;
    }
    .ta-afim-head {
        display: block;
    }
    .ta-afim-safe {
        margin-top: 12px;
    }
    .ta-afim-head h1 {
        font-size: 1.75rem;
    }
    .ta-afim-intentions,
    .ta-afim-results {
        grid-template-columns: 1fr;
    }
    .ta-afim-active__head {
        display: block;
    }
    .ta-afim-active__head .btn {
        width: 100%;
        margin-top: 14px;
    }
}
@media (min-width: 681px) {
    .ta-afim-intro .btn,
    .ta-afim-setup > .btn {
        min-width: 220px;
    }
}

/* Tá Afim? layout refinement */
body.ta-afim-page .ta-afim-shell {
    width: min(calc(100% - 24px), 860px);
    padding: 20px 0 48px;
}
body.ta-afim-page .ta-afim-head {
    display: block;
    max-width: 760px;
    margin: 0 auto 18px;
}
body.ta-afim-page .ta-afim-head > div:first-child {
    display: block;
    min-width: 0;
}
body.ta-afim-page .ta-afim-head h1 {
    margin: 12px 0 7px;
    line-height: 1.12;
}
body.ta-afim-page .ta-afim-head p {
    max-width: 62ch;
    margin: 0;
    line-height: 1.55;
}
body.ta-afim-page .ta-afim-safe {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid rgba(168, 85, 247, .2);
    border-radius: 14px;
    color: #59657e;
    background: rgba(255, 255, 255, .94);
    font-size: .8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.ta-afim-page .ta-afim-safe__icon {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 9px;
    color: #8b269e;
    background: #f7eaff;
}
body.ta-afim-page .ta-afim-safe__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
body.ta-afim-page .ta-afim-panel {
    padding: clamp(20px, 4vw, 30px);
}
body.ta-afim-page .ta-afim-intro {
    max-width: 600px;
    margin: 0 auto;
}
body.ta-afim-page .ta-afim-panel__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    box-shadow: 0 9px 20px rgba(180, 26, 170, .2);
}
body.ta-afim-page .ta-afim-panel__icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}
body.ta-afim-page .ta-afim-panel__icon svg path + path {
    opacity: .75;
}
body.ta-afim-page .ta-afim-intro h2 {
    line-height: 1.25;
}
body.ta-afim-page .ta-afim-intro p {
    margin: 9px auto 18px;
    line-height: 1.55;
}
@media (max-width: 500px) {
    body.ta-afim-page .ta-afim-shell {
        width: min(calc(100% - 20px), 460px);
        padding-top: 16px;
    }
    body.ta-afim-page .ta-afim-head {
        margin-bottom: 14px;
    }
    body.ta-afim-page .ta-afim-head h1 {
        margin-top: 10px;
        font-size: 1.72rem;
    }
    body.ta-afim-page .ta-afim-head p {
        font-size: .92rem;
    }
    body.ta-afim-page .ta-afim-safe {
        margin-top: 13px;
        padding: 10px 11px;
        font-size: .76rem;
    }
    body.ta-afim-page .ta-afim-panel {
        border-radius: 19px;
        padding: 20px 16px;
    }
    body.ta-afim-page .ta-afim-panel__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }
}
@media (max-width: 350px) {
    body.ta-afim-page .ta-afim-shell {
        width: calc(100% - 16px);
    }
    body.ta-afim-page .ta-afim-safe {
        font-size: .72rem;
    }
}
body.ta-afim-page .ta-afim-empty[hidden] {
    display: none !important;
}
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate] {
    border-color: rgba(126, 34, 206, .28);
    color: #6b21a8;
    background: #fbf7ff;
    box-shadow: none;
    white-space: nowrap;
}
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate]:hover,
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate]:focus-visible {
    border-color: rgba(126, 34, 206, .48);
    background: #f6edff;
}
body.ta-afim-page .ta-afim-empty[hidden] {
    display: none !important;
}
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate] {
    border-color: rgba(126, 34, 206, .28);
    color: #6b21a8;
    background: #fbf7ff;
    box-shadow: none;
    white-space: nowrap;
}
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate]:hover,
body.ta-afim-page .ta-afim-active__head [data-ta-afim-deactivate]:focus-visible {
    border-color: rgba(126, 34, 206, .48);
    background: #f6edff;
}

/* Tá Afim? layout refinement */
body.ta-afim-page .ta-afim-shell {
    width: min(calc(100% - 24px), 860px);
    padding: 20px 0 48px;
}
body.ta-afim-page .ta-afim-head {
    display: block;
    max-width: 760px;
    margin: 0 auto 18px;
}
body.ta-afim-page .ta-afim-head > div:first-child {
    display: block;
    min-width: 0;
}
body.ta-afim-page .ta-afim-head h1 {
    margin: 12px 0 7px;
    line-height: 1.12;
}
body.ta-afim-page .ta-afim-head p {
    max-width: 62ch;
    margin: 0;
    line-height: 1.55;
}
body.ta-afim-page .ta-afim-safe {
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 11px 13px;
    border: 1px solid rgba(168, 85, 247, .2);
    border-radius: 14px;
    color: #59657e;
    background: rgba(255, 255, 255, .94);
    font-size: .8rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}
body.ta-afim-page .ta-afim-safe__icon {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 9px;
    color: #8b269e;
    background: #f7eaff;
}
body.ta-afim-page .ta-afim-safe__icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
body.ta-afim-page .ta-afim-panel {
    padding: clamp(20px, 4vw, 30px);
}
body.ta-afim-page .ta-afim-intro {
    max-width: 600px;
    margin: 0 auto;
}
body.ta-afim-page .ta-afim-panel__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    box-shadow: 0 9px 20px rgba(180, 26, 170, .2);
}
body.ta-afim-page .ta-afim-panel__icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}
body.ta-afim-page .ta-afim-panel__icon svg path + path {
    opacity: .75;
}
body.ta-afim-page .ta-afim-intro h2 {
    line-height: 1.25;
}
body.ta-afim-page .ta-afim-intro p {
    margin: 9px auto 18px;
    line-height: 1.55;
}
@media (max-width: 500px) {
    body.ta-afim-page .ta-afim-shell {
        width: min(calc(100% - 20px), 460px);
        padding-top: 16px;
    }
    body.ta-afim-page .ta-afim-head {
        margin-bottom: 14px;
    }
    body.ta-afim-page .ta-afim-head h1 {
        margin-top: 10px;
        font-size: 1.72rem;
    }
    body.ta-afim-page .ta-afim-head p {
        font-size: .92rem;
    }
    body.ta-afim-page .ta-afim-safe {
        margin-top: 13px;
        padding: 10px 11px;
        font-size: .76rem;
    }
    body.ta-afim-page .ta-afim-panel {
        border-radius: 19px;
        padding: 20px 16px;
    }
    body.ta-afim-page .ta-afim-panel__icon {
        width: 52px;
        height: 52px;
        margin-bottom: 14px;
    }
}
@media (max-width: 350px) {
    body.ta-afim-page .ta-afim-shell {
        width: calc(100% - 16px);
    }
    body.ta-afim-page .ta-afim-safe {
        font-size: .72rem;
    }
}

/* Profile edit visual refresh */
body.profile-edit-page {
    min-width: 0;
    overflow-x: hidden;
    background: #f5f6fa;
    color: #17152a;
}
body.profile-edit-page .profile-main {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 20px 16px 56px;
}
body.profile-edit-page .profile-edit-shell {
    width: min(100%, 820px);
    margin: 0 auto;
}
body.profile-edit-page .profile-edit-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 auto 16px;
}
body.profile-edit-page .profile-edit-header h1 {
    margin: 3px 0 0;
    color: #111827 !important;
    opacity: 1 !important;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
body.profile-edit-page .profile-edit-back {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #ded8e7;
    border-radius: 12px;
    color: #374151 !important;
    opacity: 1 !important;
    background: #fff;
    font-size: 1.15rem;
    text-decoration: none;
}
body.profile-edit-page .profile-edit-back:hover,
body.profile-edit-page .profile-edit-back:focus-visible {
    border-color: #bd67d0;
    color: #8a1da1;
    background: #fff7ff;
}
body.profile-edit-page .profile-edit-kicker {
    color: #8614a8 !important;
    opacity: 1 !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.profile-edit-page .profile-edit-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(20px, 3.5vw, 32px);
    border: 1px solid #e5dfeb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(44, 29, 65, .08);
}
body.profile-edit-page .profile-edit-copy {
    margin: 0 0 22px;
    padding: 0;
}
body.profile-edit-page .profile-edit-copy p {
    max-width: 68ch;
    margin: 0;
    color: #374151 !important;
    opacity: 1 !important;
    font-size: .9rem;
    line-height: 1.55;
}
body.profile-edit-page .profile-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    color: #272036;
}
body.profile-edit-page .profile-edit-form .two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.profile-edit-page .profile-edit-form label:not(.checkbox-line) {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #302841;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9d5e2;
    border-radius: 10px;
    outline: none;
    color: #252033;
    background: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select {
    min-height: 42px;
    padding: 0 12px;
}
body.profile-edit-page .profile-edit-form textarea {
    min-height: 76px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.45;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):focus,
body.profile-edit-page .profile-edit-form select:focus,
body.profile-edit-page .profile-edit-form textarea:focus {
    border-color: #ae3fc3;
    box-shadow: 0 0 0 3px rgba(174, 63, 195, .12);
}
body.profile-edit-page .profile-edit-form input::placeholder,
body.profile-edit-page .profile-edit-form textarea::placeholder {
    color: #9a94a7;
}
body.profile-edit-page .profile-edit-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eeeaf2;
}
body.profile-edit-page .profile-edit-section-heading > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #8e1ea5;
    background: #f8eaff;
    font-size: .68rem;
    font-weight: 900;
}
body.profile-edit-page .profile-edit-section-heading h2 {
    margin: 0;
    color: #211631;
    font-size: 1rem;
    line-height: 1.2;
}
body.profile-edit-page .profile-edit-section-heading p {
    margin: 3px 0 0;
    color: #7a7489;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.35;
}
body.profile-edit-page .profile-edit-form .checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: -5px 0;
    color: #4c465b;
    font-size: .84rem;
    font-weight: 600;
}
body.profile-edit-page .profile-edit-form .checkbox-line input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: #a629bb;
}
body.profile-edit-page .profile-edit-form > .btn {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8738ed, #d21b9c);
    box-shadow: 0 10px 20px rgba(174, 42, 205, .2);
    font-weight: 800;
}
body.profile-edit-page .profile-edit-form > .btn:hover,
body.profile-edit-page .profile-edit-form > .btn:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
body.profile-edit-page .profile-edit-form .alert {
    margin: 0;
    border-radius: 10px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-main {
        padding: 16px 10px 44px;
    }
    body.profile-edit-page .profile-edit-header {
        margin-bottom: 12px;
    }
    body.profile-edit-page .profile-edit-card {
        padding: 18px 14px 22px;
        border-radius: 17px;
    }
    body.profile-edit-page .profile-edit-copy {
        margin-bottom: 18px;
    }
    body.profile-edit-page .profile-edit-form {
        gap: 13px;
    }
    body.profile-edit-page .profile-edit-form .two-cols {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    body.profile-edit-page .profile-edit-section-heading {
        margin-top: 5px;
        padding-top: 14px;
    }
}
@media (max-width: 350px) {
    body.profile-edit-page .profile-main {
        padding-inline: 8px;
    }
    body.profile-edit-page .profile-edit-card {
        padding-inline: 12px;
    }
}

/* Profile edit visual refresh */
body.profile-edit-page {
    min-width: 0;
    overflow-x: hidden;
    background: #f5f6fa;
    color: #111827 !important;
    opacity: 1 !important;
}
body.profile-edit-page .profile-main {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 20px 16px 56px;
}
body.profile-edit-page .profile-edit-shell {
    width: min(100%, 820px);
    margin: 0 auto;
}
body.profile-edit-page .profile-edit-header {
    display: flex;
    align-items: center;
    gap: 13px;
    margin: 0 auto 16px;
}
body.profile-edit-page .profile-edit-header h1 {
    margin: 3px 0 0;
    color: #17152a;
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -.025em;
}
body.profile-edit-page .profile-edit-back {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid #ded8e7;
    border-radius: 12px;
    color: #374151 !important;
    opacity: 1 !important;
    background: #fff;
    font-size: 1.15rem;
    text-decoration: none;
}
body.profile-edit-page .profile-edit-back:hover,
body.profile-edit-page .profile-edit-back:focus-visible {
    border-color: #bd67d0;
    color: #8a1da1;
    background: #fff7ff;
}
body.profile-edit-page .profile-edit-kicker {
    color: #8614a8 !important;
    opacity: 1 !important;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.profile-edit-page .profile-edit-card {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: clamp(20px, 3.5vw, 32px);
    border: 1px solid #e5dfeb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 14px 32px rgba(44, 29, 65, .08);
}
body.profile-edit-page .profile-edit-copy {
    margin: 0 0 22px;
    padding: 0;
}
body.profile-edit-page .profile-edit-copy p {
    max-width: 68ch;
    margin: 0;
    color: #374151 !important;
    opacity: 1 !important;
    font-size: .9rem;
    line-height: 1.55;
}
body.profile-edit-page .profile-edit-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    color: #272036;
}
body.profile-edit-page .profile-edit-form .two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.profile-edit-page .profile-edit-form label:not(.checkbox-line) {
    display: grid;
    min-width: 0;
    gap: 7px;
    color: #302841;
    font-size: .82rem;
    font-weight: 800;
    line-height: 1.25;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d9d5e2;
    border-radius: 10px;
    outline: none;
    color: #252033;
    background: #fff;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select {
    min-height: 42px;
    padding: 0 12px;
}
body.profile-edit-page .profile-edit-form textarea {
    min-height: 76px;
    padding: 10px 12px;
    resize: vertical;
    line-height: 1.45;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):focus,
body.profile-edit-page .profile-edit-form select:focus,
body.profile-edit-page .profile-edit-form textarea:focus {
    border-color: #ae3fc3;
    box-shadow: 0 0 0 3px rgba(174, 63, 195, .12);
}
body.profile-edit-page .profile-edit-form input::placeholder,
body.profile-edit-page .profile-edit-form textarea::placeholder {
    color: #9a94a7;
}
body.profile-edit-page .profile-edit-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #eeeaf2;
}
body.profile-edit-page .profile-edit-section-heading > span {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    color: #8e1ea5;
    background: #f8eaff;
    font-size: .68rem;
    font-weight: 900;
}
body.profile-edit-page .profile-edit-section-heading h2 {
    margin: 0;
    color: #211631;
    font-size: 1rem;
    line-height: 1.2;
}
body.profile-edit-page .profile-edit-section-heading p {
    margin: 3px 0 0;
    color: #7a7489;
    font-size: .75rem;
    font-weight: 500;
    line-height: 1.35;
}
body.profile-edit-page .profile-edit-form .checkbox-line {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: -5px 0;
    color: #4c465b;
    font-size: .84rem;
    font-weight: 600;
}
body.profile-edit-page .profile-edit-form .checkbox-line input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    accent-color: #a629bb;
}
body.profile-edit-page .profile-edit-form > .btn {
    width: 100%;
    min-height: 46px;
    margin-top: 6px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #8738ed, #d21b9c);
    box-shadow: 0 10px 20px rgba(174, 42, 205, .2);
    font-weight: 800;
}
body.profile-edit-page .profile-edit-form > .btn:hover,
body.profile-edit-page .profile-edit-form > .btn:focus-visible {
    filter: brightness(1.04);
    transform: translateY(-1px);
}
body.profile-edit-page .profile-edit-form .alert {
    margin: 0;
    border-radius: 10px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-main {
        padding: 16px 10px 44px;
    }
    body.profile-edit-page .profile-edit-header {
        margin-bottom: 12px;
    }
    body.profile-edit-page .profile-edit-card {
        padding: 18px 14px 22px;
        border-radius: 17px;
    }
    body.profile-edit-page .profile-edit-copy {
        margin-bottom: 18px;
    }
    body.profile-edit-page .profile-edit-form {
        gap: 13px;
    }
    body.profile-edit-page .profile-edit-form .two-cols {
        grid-template-columns: 1fr;
        gap: 13px;
    }
    body.profile-edit-page .profile-edit-section-heading {
        margin-top: 5px;
        padding-top: 14px;
    }
}
@media (max-width: 350px) {
    body.profile-edit-page .profile-main {
        padding-inline: 8px;
    }
    body.profile-edit-page .profile-edit-card {
        padding-inline: 12px;
    }
}

/* Profile edit light sections */
body.profile-edit-page .profile-edit-card {
    width: min(100%, 820px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.profile-edit-page .profile-edit-copy {
    padding: 0 4px;
    margin: 0 0 14px;
}
body.profile-edit-page .profile-edit-form {
    gap: 12px;
}
body.profile-edit-page .profile-edit-section {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid #e4dfeb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(44, 29, 65, .055);
}
body.profile-edit-page .profile-edit-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 2px;
    padding: 0 0 13px;
    border-top: 0;
    border-bottom: 1px solid #eeeaf2;
}
body.profile-edit-page .profile-edit-section-heading > div {
    min-width: 0;
}
body.profile-edit-page .profile-edit-section-heading h2 {
    color: #20152f;
}
body.profile-edit-page .profile-edit-section-heading p {
    color: #686277;
}
body.profile-edit-page .profile-edit-form .two-cols {
    gap: 13px;
}
body.profile-edit-page .profile-edit-form label:not(.checkbox-line) {
    color: #292235;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    border-color: #d5d1dc;
    color: #252033;
    background: #fff;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):hover,
body.profile-edit-page .profile-edit-form select:hover,
body.profile-edit-page .profile-edit-form textarea:hover {
    border-color: #bcb5c8;
}
body.profile-edit-page .profile-edit-form .checkbox-line {
    margin: -2px 0;
    color: #3e374d;
}
body.profile-edit-page .profile-edit-form > .btn {
    margin-top: 4px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-edit-section {
        padding: 17px 14px 18px;
        border-radius: 16px;
    }
    body.profile-edit-page .profile-edit-section-heading {
        padding-bottom: 11px;
    }
}

/* Profile edit light sections */
body.profile-edit-page .profile-edit-card {
    width: min(100%, 820px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}
body.profile-edit-page .profile-edit-copy {
    padding: 0 4px;
    margin: 0 0 14px;
}
body.profile-edit-page .profile-edit-form {
    gap: 12px;
}
body.profile-edit-page .profile-edit-section {
    display: grid;
    gap: 14px;
    min-width: 0;
    padding: clamp(18px, 3vw, 24px);
    border: 1px solid #e4dfeb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 22px rgba(44, 29, 65, .055);
}
body.profile-edit-page .profile-edit-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 2px;
    padding: 0 0 13px;
    border-top: 0;
    border-bottom: 1px solid #eeeaf2;
}
body.profile-edit-page .profile-edit-section-heading > div {
    min-width: 0;
}
body.profile-edit-page .profile-edit-section-heading h2 {
    color: #20152f;
}
body.profile-edit-page .profile-edit-section-heading p {
    color: #686277;
}
body.profile-edit-page .profile-edit-form .two-cols {
    gap: 13px;
}
body.profile-edit-page .profile-edit-form label:not(.checkbox-line) {
    color: #292235;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    border-color: #d5d1dc;
    color: #252033;
    background: #fff;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):hover,
body.profile-edit-page .profile-edit-form select:hover,
body.profile-edit-page .profile-edit-form textarea:hover {
    border-color: #bcb5c8;
}
body.profile-edit-page .profile-edit-form .checkbox-line {
    margin: -2px 0;
    color: #3e374d;
}
body.profile-edit-page .profile-edit-form > .btn {
    margin-top: 4px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-edit-section {
        padding: 17px 14px 18px;
        border-radius: 16px;
    }
    body.profile-edit-page .profile-edit-section-heading {
        padding-bottom: 11px;
    }
}

/* Profile edit field readability */
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.profile-edit-page .profile-edit-form select option,
body.profile-edit-page .profile-edit-form select optgroup {
    color: #111827 !important;
    background: #fff !important;
    -webkit-text-fill-color: #111827 !important;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"])::placeholder,
body.profile-edit-page .profile-edit-form textarea::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):disabled,
body.profile-edit-page .profile-edit-form input:not([type="checkbox"])[readonly],
body.profile-edit-page .profile-edit-form select:disabled,
body.profile-edit-page .profile-edit-form textarea:disabled,
body.profile-edit-page .profile-edit-form textarea[readonly] {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    background: #fff !important;
}

/* Profile edit field readability */
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]),
body.profile-edit-page .profile-edit-form select,
body.profile-edit-page .profile-edit-form textarea {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.profile-edit-page .profile-edit-form select option,
body.profile-edit-page .profile-edit-form select optgroup {
    color: #111827 !important;
    background: #fff !important;
    -webkit-text-fill-color: #111827 !important;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"])::placeholder,
body.profile-edit-page .profile-edit-form textarea::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}
body.profile-edit-page .profile-edit-form input:not([type="checkbox"]):disabled,
body.profile-edit-page .profile-edit-form input:not([type="checkbox"])[readonly],
body.profile-edit-page .profile-edit-form select:disabled,
body.profile-edit-page .profile-edit-form textarea:disabled,
body.profile-edit-page .profile-edit-form textarea[readonly] {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    background: #fff !important;
}

body.profile-edit-page .profile-edit-static-value {
    display: flex;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d5d1dc;
    border-radius: 10px;
    color: #374151;
    background: #f9fafb;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.25;
}

body.profile-edit-page .profile-edit-static-value {
    display: flex;
    width: 100%;
    min-height: 42px;
    box-sizing: border-box;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #d5d1dc;
    border-radius: 10px;
    color: #374151;
    background: #f9fafb;
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.25;
}

body.profile-edit-page .profile-edit-couple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.profile-edit-page .profile-edit-couple-block {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #ece7f1;
    border-radius: 14px;
    background: #fcfbfe;
}
body.profile-edit-page .profile-edit-couple-block h3 {
    margin: 0 0 2px;
    color: #7f1d96;
    font-size: .92rem;
}
body.profile-edit-page .profile-edit-couple-info {
    display: grid;
    gap: 14px;
    min-width: 0;
}
body.profile-edit-page .profile-edit-couple-info .two-cols {
    gap: 13px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-edit-couple-grid {
        grid-template-columns: 1fr;
    }
body.profile-edit-page .profile-edit-couple-block {
        padding: 14px 12px;
    }
}

/* Location onboarding: selects compactos e filtro opcional por cidade. */
body.location-page .location-field select,
body.location-page .location-field > input#location-input {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid rgba(155, 92, 255, .34);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: #ffffff;
    font: inherit;
    outline: none;
}
body.location-page .location-field > input#location-input {
    min-height: 42px;
    padding-block: 9px;
    font-size: .86rem;
}
body.location-page .location-field select:focus,
body.location-page .location-field > input#location-input:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .16);
}
body.location-page .location-field select:disabled,
body.location-page .location-field > input#location-input:disabled {
    color: rgba(255, 255, 255, .58);
    opacity: 1;
}
body.location-page .location-field select option {
    background: #111126;
    color: #ffffff;
}
body.location-page .location-field > input#location-input::placeholder {
    color: rgba(255, 255, 255, .58);
    opacity: 1;
}
body.location-page .location-input-row {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
    gap: 8px;
}
body.location-page .location-current {
    min-width: 0;
    min-height: 50px;
    padding: 8px 10px;
    gap: 7px;
    font-size: .76rem;
    line-height: 1.15;
    white-space: normal;
}
body.location-page .location-current svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
@media (max-width: 360px) {
    body.location-page .location-input-row {
        grid-template-columns: minmax(0, 1fr) 128px;
    }
    body.location-page .location-current {
        padding-inline: 7px;
        font-size: .7rem;
    }
}

/* Location onboarding: estado validado, cidade filtrada e localização atual. */
body.location-page .location-field-wrap {
    max-width: 560px;
    gap: 12px;
}
body.location-page .location-manual {
    display: grid;
    gap: 12px;
}
body.location-page .location-select-field,
body.location-page .location-field {
    display: grid;
    gap: 7px;
    color: #ffffff;
    font-size: .86rem;
    font-weight: 700;
}
body.location-page .location-select-field select {
    width: 100%;
    min-height: 50px;
    padding: 11px 13px;
    border: 1px solid rgba(155, 92, 255, .34);
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    color: #ffffff;
    font: inherit;
    outline: none;
}
body.location-page .location-select-field select:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 4px rgba(168, 85, 247, .14);
}
body.location-page .location-select-field select:disabled {
    color: rgba(255, 255, 255, .58);
    opacity: 1;
}
body.location-page .location-input-row {
    grid-template-columns: minmax(0, 1fr) minmax(132px, 42%);
    gap: 8px;
}
body.location-page .location-current {
    min-width: 0;
    min-height: 58px;
    gap: 7px;
    padding: 8px 10px;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: normal;
}
body.location-page .location-current svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}
body.location-page .location-current span {
    min-width: 0;
}
body.location-page .location-status[data-tone="muted"] {
    color: rgba(255, 255, 255, .72);
}
body.location-page .location-status[data-tone="success"] {
    color: #bbf7d0;
    font-weight: 700;
}
@media (max-width: 360px) {
    body.location-page .location-input-row {
        grid-template-columns: minmax(0, 1fr) 128px;
    }
    body.location-page .location-current {
        padding-inline: 7px;
        font-size: .7rem;
    }
}

/* Username onboarding: valor preenchido sempre legível, sem afetar outros campos. */
body.username-page .username-field input,
body.username-page .username-field input:focus,
body.username-page .username-field input:-webkit-autofill,
body.username-page .username-field input:-webkit-autofill:hover,
body.username-page .username-field input:-webkit-autofill:focus {
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid #d8d3df !important;
    border-radius: 14px;
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    opacity: 1 !important;
}
body.username-page .username-field input:focus {
    border-color: #a855f7 !important;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, .16);
    outline: none;
}
body.username-page .username-field input::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}
body.username-page .username-field input::selection {
    background: #a21caf !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}
body.username-page .username-field input:-webkit-autofill {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}
body.username-page .username-status.is-available {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-height: 20px;
}
body.username-page .username-status.is-available::before {
    flex: 0 0 18px;
    margin-right: 0;
}

/* Cabeçalho compartilhado do onboarding/cadastro: prioridade única para a marca. */
body .topbar.onboarding-brand-header,
body .topbar.onboarding-brand-header .topbar-inner,
body .topbar.onboarding-brand-header .brand,
body .topbar.onboarding-brand-header .brand-wordmark {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body .topbar.onboarding-brand-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
body .topbar.onboarding-brand-header .brand-wordmark strong,
body .topbar.onboarding-brand-header .brand-wordmark .brand-sex {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body .topbar.onboarding-brand-header .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
}
body .topbar.onboarding-brand-header .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Username: conteúdo legível no campo escuro e status sem mojibake. */
body.username-page .username-field input,
body.username-page .username-field input:focus,
body.username-page .username-field input:-webkit-autofill {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    opacity: 1 !important;
}
body.username-page .username-field input::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}
body.username-page .username-field input::selection {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: #a21caf !important;
}
body.username-page .username-status.is-available::before {
    content: "\2713" !important;
}
body.username-page .username-status.is-error::before {
    content: "\2715" !important;
}

body.onboarding-page .form-shell {
    position: relative;
}

body.onboarding-page .onboarding-back {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-bottom: 8px;
    border: 1px solid #ded7e7;
    border-radius: 50%;
    color: #4b5563;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

body.onboarding-page .onboarding-back:hover,
body.onboarding-page .onboarding-back:focus-visible {
    color: #7c20c9;
    border-color: #d4afe9;
    outline: none;
}

body.onboarding-page .form-shell {
    position: relative;
}

body.onboarding-page .onboarding-back {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    margin-bottom: 8px;
    border: 1px solid #ded7e7;
    border-radius: 50%;
    color: #4b5563;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

body.onboarding-page .onboarding-back:hover,
body.onboarding-page .onboarding-back:focus-visible {
    color: #7c20c9;
    border-color: #d4afe9;
    outline: none;
}
body.prepare-page .prep-skip-wrap,
body.desire-page .desire-skip-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}
body.prepare-page .prep-skip-option,
body.desire-page .desire-skip-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d1fb8;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
body.prepare-page .prep-skip-option input,
body.desire-page .desire-skip-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #a21caf;
}
body.desire-page .desire-skip-wrap > .desire-skip {
    display: none;
}
body.prepare-page .prep-skip-wrap,
body.desire-page .desire-skip-wrap {
    display: flex;
    justify-content: center;
    padding: 12px 0 8px;
}
body.prepare-page .prep-skip-option,
body.desire-page .desire-skip-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #7d1fb8;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
}
body.prepare-page .prep-skip-option input,
body.desire-page .desire-skip-choice input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #a21caf;
}
body.desire-page .desire-skip-wrap > .desire-skip {
    display: none;
}
/* Preparacao do perfil: cards visuais e responsivos da etapa de interesses */
body.prepare-page {
    background: #f6f7fb;
    color: #111827;
}

body.prepare-page .app-main,
body.prepare-page .app-main-minimal {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 48px;
}

body.prepare-page .prep-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding: 18px 12px 42px;
}

body.prepare-page .prep-card {
    width: min(720px, 100%);
    border: 1px solid #e4dff0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(42, 22, 74, 0.12);
}

body.prepare-page .prep-head {
    position: relative;
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eeeaf5;
}

body.prepare-page .prep-back {
    position: absolute;
    top: 15px;
    left: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #e3d9ed;
    border-radius: 50%;
    color: #4b5563;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

body.prepare-page .prep-back:hover,
body.prepare-page .prep-back:focus-visible {
    color: #7c20c9;
    border-color: #d8b9ed;
    outline: none;
}

body.consent-page .consent-card {
    position: relative;
}

body.consent-page .consent-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}

body.prepare-page .prep-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    border: 1px solid #e5c9ff;
    border-radius: 999px;
    color: #7c20c9;
    background: #fbf4ff;
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .08em;
    font-weight: 900;
}

body.prepare-page .prep-head h1 {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    line-height: 1.18;
}

body.prepare-page .prep-form {
    gap: 0;
    padding: 17px 20px 18px;
    background: #fff;
}

body.prepare-page .prep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

body.prepare-page .prep-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 140px;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid #eadff4;
    border-radius: 15px;
    background: #9b55c8;
    box-shadow: 0 4px 12px rgba(42, 22, 74, .08);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.prepare-page .prep-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.prepare-page .prep-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 12, 35, .04) 25%, rgba(17, 12, 35, .12) 42%, rgba(17, 12, 35, .9) 100%);
}

body.prepare-page .prep-tile-label {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 38px 42px 11px 11px;
    color: #fff;
    font-size: .92rem;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}

body.prepare-page .prep-check {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.prepare-page .prep-tile-check {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 8px;
    color: transparent;
    background: rgba(20, 13, 38, .38);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
}

body.prepare-page .prep-tile:focus-within {
    outline: 3px solid rgba(184, 44, 255, .28);
    outline-offset: 2px;
}

body.prepare-page .prep-tile:has(.prep-check:checked) {
    border-color: #d51bdf;
    box-shadow: 0 0 0 2px rgba(124, 32, 255, .16), 0 8px 18px rgba(124, 32, 255, .18);
    transform: translateY(-2px);
}

body.prepare-page .prep-check:checked ~ .prep-tile-check {
    border-color: #fff;
    color: #fff;
    background: linear-gradient(135deg, #7c20ff, #ef168f);
}

body.prepare-page .prep-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 17px;
    padding: 15px 0 0;
    border-top: 1px solid #eeeaf5;
    background: #fff;
}

body.prepare-page .prep-dots {
    gap: 7px;
}

body.prepare-page .prep-dots .dot {
    width: 7px;
    height: 7px;
    background: #d8d4e2;
}

body.prepare-page .prep-dots .dot.active {
    background: #d51bdf;
}

body.prepare-page .prep-continue {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: .95rem;
}

@media (max-width: 760px) {
    body.prepare-page .prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    body.prepare-page .prep-tile {
        height: 128px;
    }
}

@media (max-width: 390px) {
    body.prepare-page .prep-shell {
        padding-inline: 8px;
    }

    body.prepare-page .prep-card {
        border-radius: 18px;
    }

    body.prepare-page .prep-head {
        padding: 17px 14px 13px;
    }

    body.prepare-page .prep-form {
        padding-inline: 14px;
    }

    body.prepare-page .prep-tile-label {
        padding-right: 37px;
        font-size: .84rem;
    }

    body.prepare-page .prep-footer {
        gap: 10px;
    }
}
/* Prepare: contraste definitivo da marca no cabeçalho minimalista */
body.prepare-page .topbar-minimal {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body.prepare-page .topbar-minimal .brand-wordmark strong,
body.prepare-page .topbar-minimal .brand-wordmark .brand-sex {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Admin: gerenciamento das imagens dos cards da etapa de cadastro */
body.admin-page .admin-prep-images-panel {
    max-width: 1120px;
}
body.admin-page .admin-prep-images-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.admin-page .admin-prep-image-card {
    display: grid;
    grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #fff;
}
body.admin-page .admin-prep-image-preview {
    aspect-ratio: 4 / 3;
    min-width: 0;
    overflow: hidden;
    border-radius: 9px;
    background: #f3eef8;
}
body.admin-page .admin-prep-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.admin-page .admin-prep-image-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
body.admin-page .admin-prep-image-copy h3 {
    margin: 0;
    color: #202126;
    font-size: 1rem;
}
body.admin-page .admin-prep-image-file {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px dashed #cbb5d8;
    border-radius: 8px;
    color: #7c258f;
    background: #fcf8fd;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}
body.admin-page .admin-prep-image-file input[type=file] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}
body.admin-page .admin-prep-image-copy small {
    color: #747783;
    font-size: .7rem;
    line-height: 1.35;
}
body.admin-page .admin-prep-image-copy .admin-button {
    width: 100%;
    margin-top: auto;
}
@media (max-width: 760px) {
    body.admin-page .admin-prep-images-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 460px) {
    body.admin-page .admin-prep-image-card {
        grid-template-columns: 1fr;
    }
}
/* Prepare: contraste definitivo da marca no cabeçalho minimalista */
body.prepare-page .topbar-minimal {
    background: #fff !important;
    border-bottom: 1px solid #e5e7eb !important;
    color: #111827 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body.prepare-page .topbar-minimal .brand-wordmark strong,
body.prepare-page .topbar-minimal .brand-wordmark .brand-sex {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
}
body.prepare-page .topbar-minimal .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}

/* Admin: gerenciamento das imagens dos cards da etapa de cadastro */
body.admin-page .admin-prep-images-panel {
    max-width: 1120px;
}
body.admin-page .admin-prep-images-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.admin-page .admin-prep-image-card {
    display: grid;
    grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
    min-width: 0;
    padding: 12px;
    border: 1px solid #e5e6eb;
    border-radius: 12px;
    background: #fff;
}
body.admin-page .admin-prep-image-preview {
    aspect-ratio: 4 / 3;
    min-width: 0;
    overflow: hidden;
    border-radius: 9px;
    background: #f3eef8;
}
body.admin-page .admin-prep-image-preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.admin-page .admin-prep-image-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
body.admin-page .admin-prep-image-copy h3 {
    margin: 0;
    color: #202126;
    font-size: 1rem;
}
body.admin-page .admin-prep-image-file {
    display: flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    border: 1px dashed #cbb5d8;
    border-radius: 8px;
    color: #7c258f;
    background: #fcf8fd;
    font-size: .78rem;
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}
body.admin-page .admin-prep-image-file input[type=file] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}
body.admin-page .admin-prep-image-copy small {
    color: #747783;
    font-size: .7rem;
    line-height: 1.35;
}
body.admin-page .admin-prep-image-copy .admin-button {
    width: 100%;
    margin-top: auto;
}
@media (max-width: 760px) {
    body.admin-page .admin-prep-images-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 460px) {
    body.admin-page .admin-prep-image-card {
        grid-template-columns: 1fr;
    }
}
/* Preparacao do perfil: cards visuais e responsivos da etapa de interesses */
body.prepare-page {
    background: #f6f7fb;
    color: #111827;
}

body.prepare-page .app-main,
body.prepare-page .app-main-minimal {
    min-height: 0;
    padding-top: 18px;
    padding-bottom: 48px;
}

body.prepare-page .prep-shell {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 0;
    padding: 18px 12px 42px;
}

body.prepare-page .prep-card {
    width: min(720px, 100%);
    border: 1px solid #e4dff0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(42, 22, 74, 0.12);
}

body.prepare-page .prep-head {
    position: relative;
    padding: 20px 20px 15px;
    text-align: center;
    border-bottom: 1px solid #eeeaf5;
}

body.prepare-page .prep-back {
    position: absolute;
    top: 15px;
    left: 16px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 1px solid #e3d9ed;
    border-radius: 50%;
    color: #4b5563;
    background: #fff;
    font-size: 1.1rem;
    line-height: 1;
    text-decoration: none;
}

body.prepare-page .prep-back:hover,
body.prepare-page .prep-back:focus-visible {
    color: #7c20c9;
    border-color: #d8b9ed;
    outline: none;
}

body.consent-page .consent-card {
    position: relative;
}

body.consent-page .consent-back {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 50%;
    color: rgba(255, 255, 255, .9);
    text-decoration: none;
}

body.prepare-page .prep-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 4px 10px;
    border: 1px solid #e5c9ff;
    border-radius: 999px;
    color: #7c20c9;
    background: #fbf4ff;
    font-size: .72rem;
    line-height: 1;
    letter-spacing: .08em;
    font-weight: 900;
}

body.prepare-page .prep-head h1 {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    line-height: 1.18;
}

body.prepare-page .prep-form {
    gap: 0;
    padding: 17px 20px 18px;
    background: #fff;
}

body.prepare-page .prep-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px;
}

body.prepare-page .prep-tile {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 140px;
    min-height: 0;
    overflow: hidden;
    isolation: isolate;
    border: 2px solid #eadff4;
    border-radius: 15px;
    background: #9b55c8;
    box-shadow: 0 4px 12px rgba(42, 22, 74, .08);
    cursor: pointer;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.prepare-page .prep-tile-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

body.prepare-page .prep-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(17, 12, 35, .04) 25%, rgba(17, 12, 35, .12) 42%, rgba(17, 12, 35, .9) 100%);
}

body.prepare-page .prep-tile-label {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    padding: 38px 42px 11px 11px;
    color: #fff;
    font-size: .92rem;
    line-height: 1.15;
    text-align: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .72);
}

body.prepare-page .prep-check {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

body.prepare-page .prep-tile-check {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border: 2px solid rgba(255, 255, 255, .95);
    border-radius: 8px;
    color: transparent;
    background: rgba(20, 13, 38, .38);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    font-size: .9rem;
    font-weight: 900;
    line-height: 1;
}

body.prepare-page .prep-tile:focus-within {
    outline: 3px solid rgba(184, 44, 255, .28);
    outline-offset: 2px;
}

body.prepare-page .prep-tile:has(.prep-check:checked) {
    border-color: #d51bdf;
    box-shadow: 0 0 0 2px rgba(124, 32, 255, .16), 0 8px 18px rgba(124, 32, 255, .18);
    transform: translateY(-2px);
}

body.prepare-page .prep-check:checked ~ .prep-tile-check {
    border-color: #fff;
    color: #fff;
    background: linear-gradient(135deg, #7c20ff, #ef168f);
}

body.prepare-page .prep-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    margin-top: 17px;
    padding: 15px 0 0;
    border-top: 1px solid #eeeaf5;
    background: #fff;
}

body.prepare-page .prep-dots {
    gap: 7px;
}

body.prepare-page .prep-dots .dot {
    width: 7px;
    height: 7px;
    background: #d8d4e2;
}

body.prepare-page .prep-dots .dot.active {
    background: #d51bdf;
}

body.prepare-page .prep-continue {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: .95rem;
}

@media (max-width: 760px) {
    body.prepare-page .prep-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    body.prepare-page .prep-tile {
        height: 128px;
    }
}

@media (max-width: 390px) {
    body.prepare-page .prep-shell {
        padding-inline: 8px;
    }

    body.prepare-page .prep-card {
        border-radius: 18px;
    }

    body.prepare-page .prep-head {
        padding: 17px 14px 13px;
    }

    body.prepare-page .prep-form {
        padding-inline: 14px;
    }

    body.prepare-page .prep-tile-label {
        padding-right: 37px;
        font-size: .84rem;
    }

    body.prepare-page .prep-footer {
        gap: 10px;
    }
}

/* Guest home header contrast */
body.home-page:not(.is-authenticated) .topbar-guest .brand-wordmark {
    opacity: 1 !important;
}
body.home-page:not(.is-authenticated) .topbar-guest .brand-wordmark strong,
body.home-page:not(.is-authenticated) .topbar-guest .brand-wordmark .brand-sex,
body.home-page:not(.is-authenticated) .topbar-guest .brand-wordmark .brand-fan {
    color: #7c3aed !important;
    background: none !important;
    -webkit-text-fill-color: #7c3aed !important;
    opacity: 1 !important;
}
body.home-page:not(.is-authenticated) .topbar-guest .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

/* Register guest header: override the dark-theme brand defaults on the light header. */
body.register-page .topbar-guest .brand-wordmark {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body.register-page .topbar-guest .brand-wordmark strong,
body.register-page .topbar-guest .brand-wordmark .brand-sex {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.register-page .topbar-guest .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
}
body.register-page .topbar-guest .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}

/* Consent page: compact confirmation card and readable minimal header. */
body.consent-page .topbar-minimal .brand-wordmark {
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
}
body.consent-page .topbar-minimal .brand-wordmark strong,
body.consent-page .topbar-minimal .brand-wordmark .brand-sex {
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    opacity: 1 !important;
}
body.consent-page .topbar-minimal .brand-wordmark .brand-fan {
    background: linear-gradient(135deg, #7c3aed, #d11b8a) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    -webkit-text-fill-color: transparent !important;
    opacity: 1 !important;
}
body.consent-page .topbar-minimal .brand-wordmark small {
    color: #374151 !important;
    -webkit-text-fill-color: #374151 !important;
    opacity: 1 !important;
}
body.consent-page .consent-shell {
    padding: 18px 0 34px;
}
body.consent-page .consent-card {
    width: min(640px, 100%);
    border-radius: 20px;
}
body.consent-page .consent-icon {
    padding-top: 22px;
    font-size: 2.5rem;
}
body.consent-page .consent-card h1 {
    margin: 11px 0 6px;
    font-size: clamp(1.75rem, 4vw, 2.35rem);
}
body.consent-page .consent-lead {
    padding: 0 22px 16px;
    font-size: 1rem;
    line-height: 1.45;
}
body.consent-page .consent-form {
    padding: 24px 30px 28px;
    gap: 12px;
}
body.consent-page .consent-check {
    grid-template-columns: 21px minmax(0, 1fr);
    gap: 10px;
    font-size: .9rem;
    line-height: 1.38;
}
body.consent-page .consent-check input {
    width: 19px;
    height: 19px;
    margin-top: 1px;
}
body.consent-page .consent-continue {
    min-height: 48px;
    margin-top: 5px;
    font-size: .95rem;
}
@media (max-width: 600px) {
    body.consent-page .consent-shell {
        padding: 14px 0 28px;
    }
    body.consent-page .consent-card {
        border-radius: 18px;
    }
    body.consent-page .consent-form {
        padding: 20px 18px 22px;
        gap: 11px;
    }
    body.consent-page .consent-check {
        font-size: .86rem;
    }
}

body.profile-edit-page .profile-edit-couple-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
body.profile-edit-page .profile-edit-couple-block {
    display: grid;
    gap: 13px;
    min-width: 0;
    padding: 15px;
    border: 1px solid #ece7f1;
    border-radius: 14px;
    background: #fcfbfe;
}
body.profile-edit-page .profile-edit-couple-block h3 {
    margin: 0 0 2px;
    color: #7f1d96;
    font-size: .92rem;
}
body.profile-edit-page .profile-edit-couple-info {
    display: grid;
    gap: 14px;
    min-width: 0;
}
body.profile-edit-page .profile-edit-couple-info .two-cols {
    gap: 13px;
}
@media (max-width: 680px) {
    body.profile-edit-page .profile-edit-couple-grid {
        grid-template-columns: 1fr;
    }
    body.profile-edit-page .profile-edit-couple-block {
        padding: 14px 12px;
    }
}

/* Username: última proteção do campo específico contra overrides do tema. */
body.username-page #username-input,
body.username-page #username-input:focus,
body.username-page #username-input:-webkit-autofill,
body.username-page #username-input:-webkit-autofill:hover,
body.username-page #username-input:-webkit-autofill:focus {
    background: #ffffff !important;
    color: #111827 !important;
    -webkit-text-fill-color: #111827 !important;
    caret-color: #111827 !important;
    opacity: 1 !important;
}
body.username-page #username-input:-webkit-autofill,
body.username-page #username-input:-webkit-autofill:hover,
body.username-page #username-input:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px #ffffff inset !important;
}
body.username-page #username-input::placeholder {
    color: #9ca3af !important;
    -webkit-text-fill-color: #9ca3af !important;
    opacity: 1 !important;
}

/* Upload de foto: formulário claro, compacto e isolado das páginas internas. */
body.upload-photo-page {
    background: #f5f6fa;
    color: #20232a;
}
body.upload-photo-page .upload-photo-page__main {
    width: min(100% - 28px, 640px);
    margin: 0 auto;
    padding: 28px 0 54px;
}
body.upload-photo-page .upload-photo-card {
    overflow: hidden;
    margin: 0;
    padding: clamp(20px, 4vw, 30px);
    border: 1px solid #e4e5eb;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(33, 35, 43, .10);
}
body.upload-photo-page .upload-photo-card__head {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}
body.upload-photo-page .upload-photo-card__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    color: #525866;
    font-size: .82rem;
    font-weight: 750;
    text-decoration: none;
}
body.upload-photo-page .upload-photo-card__back span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #e2d4ed;
    border-radius: 10px;
    background: #faf8fc;
    color: #8d168f;
    font-size: 1.05rem;
}
body.upload-photo-page .upload-photo-card__back:hover,
body.upload-photo-page .upload-photo-card__back:focus-visible {
    color: #8d168f;
}
body.upload-photo-page .upload-photo-card__copy .pill {
    display: inline-flex;
    margin-bottom: 7px;
    border-color: #e5c8f2;
    background: #fbf3ff;
    color: #8d168f;
    font-size: .68rem;
}
body.upload-photo-page .upload-photo-card__copy h1 {
    margin: 0;
    color: #17181d;
    font-size: clamp(1.55rem, 5vw, 2rem);
    line-height: 1.08;
}
body.upload-photo-page .upload-photo-card__copy p {
    margin: 7px 0 0;
    color: #697180;
    font-size: .9rem;
    line-height: 1.45;
}
body.upload-photo-page .upload-photo-form {
    display: grid;
    gap: 16px;
}
body.upload-photo-page .upload-photo-picker {
    display: grid;
    min-height: 156px;
    place-content: center;
    justify-items: center;
    gap: 5px;
    padding: 20px;
    border: 1.5px dashed #c984dd;
    border-radius: 16px;
    background: linear-gradient(145deg, #fffafe, #faf7fd);
    color: #252936;
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
body.upload-photo-page .upload-photo-picker:hover,
body.upload-photo-page .upload-photo-picker:focus-within {
    border-color: #a21caf;
    background: #fff7fd;
    transform: translateY(-1px);
}
body.upload-photo-page .upload-photo-picker input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
body.upload-photo-page .upload-photo-picker__icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #9e22f1, #ef258c);
    box-shadow: 0 8px 18px rgba(166, 30, 186, .23);
    font-size: 1.18rem;
}
body.upload-photo-page .upload-photo-picker__title {
    margin-top: 3px;
    font-size: .93rem;
    font-weight: 850;
}
body.upload-photo-page .upload-photo-picker__hint {
    color: #777f8d;
    font-size: .73rem;
}
body.upload-photo-page .upload-photo-preview {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 8px;
    border: 1px solid #e4e1e9;
    border-radius: 16px;
    background: #f8f8fa;
}
body.upload-photo-page .upload-photo-preview[hidden] { display: none; }
body.upload-photo-page .upload-photo-preview img {
    display: block;
    width: 100%;
    max-height: 330px;
    border-radius: 11px;
    object-fit: contain;
    background: #ececf1;
}
body.upload-photo-page .upload-photo-preview figcaption {
    overflow: hidden;
    padding: 0 3px 2px;
    color: #697180;
    font-size: .74rem;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.upload-photo-page .upload-photo-form__fields {
    display: grid;
    gap: 13px;
}
body.upload-photo-page .upload-photo-field {
    display: grid;
    gap: 7px;
    color: #303541;
    font-size: .8rem;
    font-weight: 800;
}
body.upload-photo-page .upload-photo-field select {
    width: 100%;
    min-height: 44px;
    padding: 0 38px 0 12px;
    border: 1px solid #ddd6e4;
    border-radius: 11px;
    outline: none;
    background-color: #fff;
    color: #232733;
    font: inherit;
    font-size: .86rem;
}
body.upload-photo-page .upload-photo-field select:focus {
    border-color: #b52bba;
    box-shadow: 0 0 0 3px rgba(181, 43, 186, .12);
}
body.upload-photo-page .upload-photo-switch {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    color: #3b404b;
    font-size: .84rem;
    font-weight: 750;
    cursor: pointer;
}
body.upload-photo-page .upload-photo-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
body.upload-photo-page .upload-photo-switch__track {
    display: flex;
    align-items: center;
    width: 39px;
    height: 23px;
    padding: 3px;
    border-radius: 999px;
    background: #c9ced7;
    transition: background .18s ease;
}
body.upload-photo-page .upload-photo-switch__track span {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(16, 24, 40, .24);
    transition: transform .18s ease;
}
body.upload-photo-page .upload-photo-switch input:checked + .upload-photo-switch__track {
    background: linear-gradient(135deg, #8e25eb, #ec278e);
}
body.upload-photo-page .upload-photo-switch input:checked + .upload-photo-switch__track span {
    transform: translateX(16px);
}
body.upload-photo-page .upload-photo-switch input:focus-visible + .upload-photo-switch__track {
    outline: 3px solid rgba(181, 43, 186, .2);
    outline-offset: 2px;
}
body.upload-photo-page .upload-photo-form__submit {
    width: 100%;
    min-height: 46px;
    margin-top: 3px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(105deg, #991cff, #ed188d);
    box-shadow: 0 11px 22px rgba(190, 29, 178, .25);
    color: #fff;
    font-weight: 850;
}
body.upload-photo-page .upload-photo-form .alert { margin: 0; }
@media (min-width: 760px) {
    body.upload-photo-page .upload-photo-page__main { padding-top: 38px; }
    body.upload-photo-page .upload-photo-card__head { grid-template-columns: 150px 1fr; align-items: start; }
    body.upload-photo-page .upload-photo-card__back { margin-top: 2px; }
}
@media (max-width: 520px) {
    body.upload-photo-page .upload-photo-page__main { width: min(100% - 20px, 640px); padding-top: 18px; }
    body.upload-photo-page .upload-photo-card { padding: 18px; border-radius: 16px; }
    body.upload-photo-page .upload-photo-card__head { gap: 13px; margin-bottom: 18px; }
    body.upload-photo-page .upload-photo-picker { min-height: 142px; }
    body.upload-photo-page .upload-photo-preview img { max-height: 260px; }
}

/* Aba de fotos do perfil: grade compacta e visualização sem sair da página. */
body.profile-view-page .profile-gallery-panel {
    padding-top: 15px;
}
body.profile-view-page .profile-gallery-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 13px;
}
body.profile-view-page .profile-gallery-panel__head h2 {
    margin: 0;
    color: #20232a;
    font-size: 1rem;
}
body.profile-view-page .profile-gallery-panel__head span {
    display: block;
    margin-top: 2px;
    color: #737b87;
    font-size: .72rem;
    font-weight: 700;
}
body.profile-view-page .profile-gallery-panel__publish {
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(110deg, #9420ed, #eb248c);
    box-shadow: 0 7px 15px rgba(174, 33, 184, .19);
    color: #fff;
    font-size: .74rem;
    font-weight: 850;
    white-space: nowrap;
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
    gap: 4px;
    margin: 0;
    padding: 0;
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo {
    display: block;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    aspect-ratio: 1;
    border: 0;
    border-radius: 5px;
    background: #edf0f3;
    cursor: zoom-in;
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    transition: transform .18s ease, filter .18s ease;
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo:hover img,
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo:focus-visible img {
    filter: brightness(.92);
    transform: scale(1.035);
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo:focus-visible {
    outline: 3px solid #b129b5;
    outline-offset: 2px;
}
body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__empty {
    display: grid;
    min-height: 108px;
    place-items: center;
    margin: 0;
    padding: 18px;
    border: 1px dashed #ded7e4;
    border-radius: 10px;
    background: #faf9fb;
    color: #737b87;
    font-size: .82rem;
    text-align: center;
}
body.profile-view-page .profile-photo-viewer[hidden] { display: none; }
body.profile-view-page .profile-photo-viewer {
    position: fixed;
    z-index: 900;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(10, 11, 20, .86);
}
body.profile-view-page .profile-photo-viewer img {
    display: block;
    max-width: min(100%, 980px);
    max-height: calc(100vh - 48px);
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .5);
    object-fit: contain;
}
body.profile-view-page .profile-photo-viewer__close {
    position: fixed;
    z-index: 1;
    top: 18px;
    right: 18px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(14, 15, 28, .72);
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
}
@media (max-width: 600px) {
    body.profile-view-page .profile-gallery-panel__head { align-items: flex-start; }
    body.profile-view-page .profile-gallery-panel__publish { min-height: 34px; padding: 8px 10px; font-size: .7rem; }
    body.profile-view-page .profile-gallery-panel .profile-photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
    body.profile-view-page .profile-gallery-panel .profile-photo-grid .profile-card__photo { border-radius: 4px; }
    body.profile-view-page .profile-photo-viewer { padding: 14px; }
    body.profile-view-page .profile-photo-viewer img { max-height: calc(100vh - 28px); }
    body.profile-view-page .profile-photo-viewer__close { top: 12px; right: 12px; }
}

/* Ajuste final da tela de upload: composição curta, clara e sem o cabeçalho interno. */
body.upload-photo-page .app-main,
body.upload-photo-page .app-main-minimal {
    background: transparent !important;
}
body.upload-photo-page .upload-photo-page__main {
    width: min(100% - 28px, 540px);
    padding: 18px 0 32px;
}
body.upload-photo-page .upload-photo-card {
    padding: 18px;
    border-radius: 16px;
    background: #fff !important;
    color: #20232a !important;
    box-shadow: 0 10px 28px rgba(33, 35, 43, .09);
}
body.upload-photo-page .upload-photo-card__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}
body.upload-photo-page .upload-photo-card__back {
    flex: 0 0 auto;
}
body.upload-photo-page .upload-photo-card__copy h1 {
    font-size: clamp(1.2rem, 5vw, 1.45rem);
    line-height: 1.15;
}
body.upload-photo-page .upload-photo-form { gap: 12px; }
body.upload-photo-page .upload-photo-picker {
    min-height: 116px;
    gap: 3px;
    padding: 14px;
    border-radius: 13px;
}
body.upload-photo-page .upload-photo-picker__icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    font-size: 1rem;
}
body.upload-photo-page .upload-photo-picker__title { margin-top: 1px; font-size: .86rem; }
body.upload-photo-page .upload-photo-preview { padding: 6px; border-radius: 13px; }
body.upload-photo-page .upload-photo-preview img { max-height: 230px; border-radius: 9px; }
body.upload-photo-page .upload-photo-form__fields { gap: 10px; }
body.upload-photo-page .upload-photo-field select { min-height: 41px; }
body.upload-photo-page .upload-photo-form__submit {
    min-height: 43px;
    margin-top: 0;
    border-radius: 11px;
}
@media (min-width: 760px) {
    body.upload-photo-page .upload-photo-page__main { padding-top: 24px; }
    body.upload-photo-page .upload-photo-card__head { grid-template-columns: none; }
}
@media (max-width: 520px) {
    body.upload-photo-page .upload-photo-page__main { width: min(100% - 20px, 540px); padding-top: 14px; }
    body.upload-photo-page .upload-photo-card { padding: 15px; }
    body.upload-photo-page .upload-photo-picker { min-height: 108px; }
}

/* Ajuda e suporte: formulário curto e alinhado ao perfil claro. */
body.support-page {
    background: #f5f6fa;
    color: #20232a;
}
body.support-page .app-main,
body.support-page .app-main-minimal { background: transparent !important; }
body.support-page .support-page__main {
    width: min(100% - 28px, 620px);
    margin: 0 auto;
    padding: 24px 0 46px;
}
body.support-page .support-card {
    margin: 0;
    padding: clamp(18px, 4vw, 28px);
    border: 1px solid #e3e5ea;
    border-radius: 18px;
    background: #fff !important;
    box-shadow: 0 13px 34px rgba(32, 35, 42, .09);
}
body.support-page .support-card__head {
    display: flex;
    align-items: center;
    gap: 11px;
}
body.support-page .support-card__back {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #e5d8ec;
    border-radius: 10px;
    background: #fbf9fc;
    color: #8f1e9c;
    font-size: 1.2rem;
    font-weight: 800;
    text-decoration: none;
}
body.support-page .support-card__head span {
    display: block;
    color: #9a269d;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
body.support-page .support-card__head h1 {
    margin: 2px 0 0;
    color: #1d2028;
    font-size: clamp(1.3rem, 5vw, 1.7rem);
}
body.support-page .support-card__intro {
    margin: 15px 0 18px;
    color: #68717e;
    font-size: .88rem;
    line-height: 1.5;
}
body.support-page .support-form { display: grid; gap: 13px; }
body.support-page .support-form label {
    display: grid;
    gap: 7px;
    color: #303540;
    font-size: .8rem;
    font-weight: 800;
}
body.support-page .support-form input,
body.support-page .support-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dadce4;
    border-radius: 11px;
    background: #fff;
    color: #20232a;
    font: inherit;
    font-size: .88rem;
    outline: none;
}
body.support-page .support-form input { min-height: 43px; padding: 0 12px; }
body.support-page .support-form textarea { min-height: 142px; padding: 11px 12px; resize: vertical; line-height: 1.5; }
body.support-page .support-form input:focus,
body.support-page .support-form textarea:focus { border-color: #af29b7; box-shadow: 0 0 0 3px rgba(175, 41, 183, .12); }
body.support-page .support-form ::placeholder { color: #9299a5; opacity: 1; }
body.support-page .support-form .btn {
    min-height: 44px;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(105deg, #9520ef, #ee248d);
    box-shadow: 0 10px 22px rgba(191, 35, 179, .23);
    color: #fff;
    font-weight: 850;
}
body.support-page .support-feedback {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.45;
}
body.support-page .support-feedback__icon {
    display: grid;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-size: .78rem;
    font-weight: 900;
}
body.support-page .support-feedback p { margin: 0; }
body.support-page .support-feedback--success {
    border-color: #b8e5cf;
    background: #effbf4;
    color: #17653e;
}
body.support-page .support-feedback--success .support-feedback__icon { background: #1caa68; }
body.support-page .support-feedback--error {
    border-color: #f0bec8;
    background: #fff3f5;
    color: #a32943;
}
body.support-page .support-feedback--error .support-feedback__icon { background: #d74761; }

/* Solicitações de suporte no painel administrativo. */
.admin-support-excerpt { max-width: 280px; overflow: hidden; color: #5f6570; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.admin-support-detail__message { line-height: 1.6; overflow-wrap: anywhere; white-space: normal; }
@media (max-width: 600px) {
    body.support-page .support-page__main { width: min(100% - 20px, 620px); padding-top: 16px; }
    body.support-page .support-card { padding: 16px; border-radius: 15px; }
    body.support-page .support-form textarea { min-height: 125px; }
}

/* Stories do dashboard: chips continuam na fileira atual, mas perfis com Story ativo abrem o visualizador. */
body.home-page .story-chip {
    position: relative;
    border: 0;
    padding: 0;
    background: transparent;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
body.home-page .story-chip--has-stories .story-chip__ring {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(221, 19, 137, .28);
}
body.home-page.home-page .story-chip--has-stories .story-chip__ring {
    background: linear-gradient(135deg, #ff4d8d, #8b5cf6, #d900ff) !important;
}
body.home-page .story-chip__add-button {
    position: absolute;
    right: -1px;
    bottom: -1px;
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b2bed, #ed1683);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}

body.story-viewer-open,
body.story-upload-open { overflow: hidden; }
.story-viewer[hidden],
.story-upload[hidden] { display: none !important; }
.story-viewer,
.story-upload {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 18px;
}
.story-viewer { background: rgba(4, 5, 12, .88); }
.story-viewer__backdrop,
.story-upload__backdrop {
    position: absolute;
    inset: 0;
}
.story-viewer__shell {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    height: min(92vh, 880px);
    overflow: hidden;
    border-radius: 18px;
    background: #0b0b12;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .48);
}
.story-viewer__progress {
    position: absolute;
    z-index: 4;
    top: 12px;
    right: 14px;
    left: 14px;
    display: flex;
    gap: 4px;
}
.story-viewer__progress > span {
    display: block;
    height: 3px;
    flex: 1;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
}
.story-viewer__progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width linear 5s;
}
.story-viewer__head {
    position: absolute;
    z-index: 3;
    top: 28px;
    right: 14px;
    left: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}
.story-viewer__profile { display: flex; align-items: center; gap: 9px; min-width: 0; }
.story-viewer__profile strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.story-viewer__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #9c2cf1, #e31887) center/cover;
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}
.story-viewer__close,
.story-upload__close {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.story-viewer__stage {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}
.story-viewer__media { display: grid; width: 100%; height: 100%; place-items: center; }
.story-viewer__asset { display: block; width: 100%; height: 100%; object-fit: contain; }
.story-viewer__side {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: 34%;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.story-viewer__side--prev { left: 0; }
.story-viewer__side--next { right: 0; }

.story-upload { background: rgba(18, 15, 31, .42); }
.story-upload__card {
    position: relative;
    z-index: 1;
    width: min(100%, 430px);
    padding: 25px;
    border: 1px solid #eadcf0;
    border-radius: 20px;
    background: #fff;
    color: #20232a;
    box-shadow: 0 24px 60px rgba(47, 22, 60, .24);
}
.story-upload__close { position: absolute; top: 14px; right: 14px; background: #f4eff7; color: #6e267e; }
.story-upload__card .social-panel__eyebrow { display: block; margin-bottom: 4px; color: #a321af; font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.story-upload__card h2 { margin: 0; color: #25202b; font-size: 1.45rem; }
.story-upload__card p { margin: 8px 0 18px; color: #6d7480; font-size: .88rem; line-height: 1.45; }
.story-upload__card form { display: grid; gap: 13px; }
.story-upload__picker {
    display: grid;
    min-height: 150px;
    place-items: center;
    align-content: center;
    gap: 4px;
    border: 1px dashed #bd51d0;
    border-radius: 15px;
    background: #fdf8ff;
    color: #25202b;
    text-align: center;
    cursor: pointer;
}
.story-upload__picker > span { display: grid; width: 42px; height: 42px; margin-bottom: 3px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #9c22ef, #ef1685); color: #fff; font-size: 1.6rem; font-weight: 300; }
.story-upload__picker strong { font-size: .9rem; }
.story-upload__picker small { color: #7d7482; font-size: .72rem; }
.story-upload__picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
.story-upload__preview { overflow: hidden; border-radius: 13px; background: #111; }
.story-upload__preview-media { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.story-upload__card .btn { width: 100%; min-height: 45px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #9520ef, #ee248d); color: #fff; font-weight: 850; }
@media (max-width: 600px) {
    .story-viewer { padding: 0; }
    .story-viewer__shell { width: 100%; height: 100%; border-radius: 0; }
    .story-upload { padding: 12px; }
    .story-upload__card { padding: 21px 17px; border-radius: 17px; }
    .story-upload__picker { min-height: 132px; }
}

.story-viewer__footer {
    position: absolute;
    z-index: 5;
    right: 14px;
    bottom: 15px;
    left: 14px;
    display: grid;
    gap: 8px;
}
.story-viewer__reaction-row { display: flex; gap: 7px; }
.story-viewer__reaction-row button {
    display: grid;
    width: 37px;
    height: 37px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(15, 15, 24, .62);
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}
.story-viewer__reaction-row button:hover,
.story-viewer__reaction-row button.is-selected { background: rgba(218, 28, 143, .85); transform: scale(1.07); }
.story-viewer__reply { display: flex; gap: 7px; }
.story-viewer__reply input {
    min-width: 0;
    height: 42px;
    flex: 1;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    outline: none;
    background: rgba(15, 15, 24, .72);
    color: #fff;
    font: inherit;
    font-size: .86rem;
}
.story-viewer__reply input::placeholder { color: rgba(255, 255, 255, .75); }
.story-viewer__reply button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: linear-gradient(135deg, #9823f0, #ec1a85);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}
.story-viewer__reply button:disabled { opacity: .55; cursor: wait; }
.story-viewer__views-button {
    justify-self: start;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    background: rgba(15, 15, 24, .72);
    color: #fff;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}
.story-viewer__status { min-height: 16px; color: rgba(255, 255, 255, .88); font-size: .72rem; font-weight: 700; }
.story-viewer__status.is-error { color: #ffb1bf; }
.story-viewer__details {
    position: absolute;
    z-index: 8;
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: min(70%, 500px);
    overflow-y: auto;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(11, 11, 18, .95);
    color: #fff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
}
.story-viewer__details[hidden] { display: none !important; }
.story-viewer__details-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.story-viewer__details-head strong { font-size: .95rem; }
.story-viewer__details-head button { border: 0; background: transparent; color: #fff; font-size: 1.35rem; cursor: pointer; }
.story-viewer__details h4 { margin: 12px 0 7px; color: #f5a7dd; font-size: .73rem; letter-spacing: .04em; text-transform: uppercase; }
.story-viewer__detail-item { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.story-viewer__detail-item > span:last-child { display: grid; gap: 2px; min-width: 0; }
.story-viewer__detail-item strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.story-viewer__detail-item small { color: rgba(255, 255, 255, .66); font-size: .7rem; }
.story-viewer__detail-avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid rgba(255, 255, 255, .5); border-radius: 50%; background: linear-gradient(135deg, #a62cec, #e31785) center/cover; color: #fff; font-size: .65rem; font-weight: 900; }
.story-viewer__details-empty,
.story-viewer__details-loading { margin: 0; color: rgba(255, 255, 255, .68); font-size: .8rem; }

/* Verificação de perfil: a foto enviada fica fora de public/storage e só é exibida no admin autenticado. */
body.verification-page { background: #f5f6fa; color: #20232a; }
body.verification-page .app-main,
body.verification-page .app-main-minimal { background: transparent !important; }
body.verification-page .verification-page__main { width: min(100% - 28px, 620px); margin: 0 auto; padding: 24px 0 46px; }
body.verification-page .verification-card { padding: clamp(18px, 4vw, 28px); border: 1px solid #e3e5ea; border-radius: 18px; background: #fff !important; box-shadow: 0 13px 34px rgba(32, 35, 42, .09); }
body.verification-page .verification-card__head { display: flex; align-items: center; gap: 11px; }
body.verification-page .verification-card__head > div { min-width: 0; }
body.verification-page .verification-card__back { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid #e5d8ec; border-radius: 10px; background: #fbf9fc; color: #8f1e9c; font-size: 1.2rem; font-weight: 800; text-decoration: none; }
body.verification-page .verification-card__head span { display: block; color: #9a269d; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
body.verification-page .verification-card__head h1 { margin: 2px 0 0; color: #1d2028; font-size: clamp(1.3rem, 5vw, 1.7rem); }
body.verification-page .verification-card__intro { margin: 15px 0 18px; color: #68717e; font-size: .9rem; line-height: 1.55; }
body.verification-page .verification-feedback { margin: 0 0 16px; padding: 12px 14px; border: 1px solid; border-radius: 12px; font-size: .84rem; font-weight: 750; line-height: 1.45; }
body.verification-page .verification-feedback--success { border-color: #b8e5cf; background: #effbf4; color: #17653e; }
body.verification-page .verification-feedback--error { border-color: #f0bec8; background: #fff3f5; color: #a32943; }
body.verification-page .verification-code { display: grid; gap: 4px; margin: 18px 0; padding: 18px; border: 1px solid #ead2ef; border-radius: 15px; background: linear-gradient(135deg, #fbf2ff, #fff7fb); text-align: center; }
body.verification-page .verification-code span { color: #7b7380; font-size: .76rem; font-weight: 800; }
body.verification-page .verification-code strong { color: #9b1db1; font-size: 1.9rem; letter-spacing: .1em; }
body.verification-page .verification-code small { color: #6d7480; font-size: .78rem; }
body.verification-page .verification-instructions { display: grid; gap: 10px; margin: 0 0 16px; padding-left: 22px; color: #3d424b; font-size: .87rem; line-height: 1.5; }
body.verification-page .verification-example { margin-bottom: 16px; padding: 11px 13px; border-radius: 11px; background: #f4f1f7; color: #6b6570; font-size: .78rem; line-height: 1.45; }
body.verification-page .verification-form { display: grid; gap: 13px; }
body.verification-page .verification-picker { display: grid; min-height: 145px; place-items: center; align-content: center; gap: 4px; border: 1px dashed #bd51d0; border-radius: 15px; background: #fdf8ff; color: #25202b; text-align: center; cursor: pointer; }
body.verification-page .verification-picker > span { display: grid; width: 42px; height: 42px; margin-bottom: 3px; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #9c22ef, #ef1685); color: #fff; font-size: 1.6rem; }
body.verification-page .verification-picker strong { font-size: .9rem; }
body.verification-page .verification-picker small { color: #7d7482; font-size: .72rem; }
body.verification-page .verification-picker input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
body.verification-page .verification-form .btn { min-height: 45px; border: 0; border-radius: 12px; background: linear-gradient(105deg, #9520ef, #ee248d); color: #fff; font-weight: 850; }
body.verification-page .verification-state { display: grid; justify-items: center; gap: 8px; padding: 28px 14px 12px; text-align: center; }
body.verification-page .verification-state__icon { display: grid; width: 54px; height: 54px; place-items: center; border-radius: 50%; background: #f1e5f8; color: #9b1db1; font-size: 1.5rem; font-weight: 900; }
body.verification-page .verification-state--approved .verification-state__icon { background: #e5f8ed; color: #1a9d5a; }
body.verification-page .verification-state h2 { margin: 2px 0 0; color: #25202b; font-size: 1.25rem; }
body.verification-page .verification-state p { margin: 0; color: #68717e; font-size: .88rem; line-height: 1.5; }
body.verification-page .verification-state small { color: #7b7380; font-size: .76rem; }
@media (max-width: 600px) {
    body.verification-page .verification-page__main { width: min(100% - 20px, 620px); padding-top: 16px; }
    body.verification-page .verification-card { padding: 16px; border-radius: 15px; }
}

/* Verification page refinement: compact instructions with an explicit paper model and photo preview. */
body.verification-page .verification-card { max-width: 620px; }
body.verification-page .verification-card__intro { margin: 14px 0 14px; }
body.verification-page .verification-code { gap: 5px; margin: 0 0 12px; padding: 14px 16px; }
body.verification-page .verification-code__label { display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: #716a7b; font-size: .75rem; font-weight: 800; }
body.verification-page .verification-code__label span { color: #b020bd; font-size: .9rem; }
body.verification-page .verification-code strong { font-size: clamp(1.85rem, 8vw, 2.25rem); line-height: 1.05; }
body.verification-page .verification-code__date { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #77717d; font-size: .75rem; }
body.verification-page .verification-code__date time { color: #3f3947; font-weight: 800; }
body.verification-page .verification-paper-guide { display: grid; grid-template-columns: minmax(0, 1fr) 166px; align-items: center; gap: 14px; margin-bottom: 13px; padding: 12px 14px; border: 1px solid #eee3f2; border-radius: 14px; background: #fcf9fd; }
body.verification-page .verification-paper-guide__title { display: flex; align-items: center; gap: 8px; color: #342d3b; font-size: .82rem; line-height: 1.35; }
body.verification-page .verification-paper-guide__title span { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 9px; background: #f4e5fa; color: #a01dae; font-size: .95rem; }
body.verification-page .verification-paper { display: grid; gap: 1px; justify-items: center; padding: 10px 9px; border: 1px solid #e5d9c5; border-radius: 5px; background: #fffdf7; box-shadow: 0 3px 7px rgba(60, 42, 22, .08); transform: rotate(1deg); }
body.verification-page .verification-paper strong { color: #17131b; font-size: .83rem; }
body.verification-page .verification-paper strong span { color: #25202b; }
body.verification-page .verification-paper strong em { color: #a01dae; font-style: normal; }
body.verification-page .verification-paper strong em { color: #a01dae; font-style: normal; }
body.verification-page .verification-paper b { color: #9b1db1; font-size: .77rem; letter-spacing: .08em; }
body.verification-page .verification-paper small { color: #655d67; font-size: .65rem; }
body.verification-page .verification-instructions { gap: 7px; margin-bottom: 13px; font-size: .83rem; }
body.verification-page .verification-example { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 13px; padding: 10px 12px; }
body.verification-page .verification-example > span { flex: 0 0 auto; font-size: .9rem; line-height: 1.25; }
body.verification-page .verification-example strong { color: #4d4653; font-size: .78rem; }
body.verification-page .verification-example div span { color: #706a75; font-size: .75rem; }
body.verification-page .verification-form { gap: 10px; }
body.verification-page .verification-picker { grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 1fr auto; grid-template-areas: "icon copy" "file file"; min-height: 92px; padding: 11px 14px; place-items: center start; align-content: center; column-gap: 10px; row-gap: 3px; text-align: left; }
body.verification-page .verification-picker__icon { grid-area: icon; display: grid; width: 40px; height: 40px; margin: 0; place-items: center; border-radius: 12px; background: linear-gradient(135deg, #9c22ef, #ef1685); color: #fff; font-size: 1.45rem; font-weight: 900; }
body.verification-page .verification-picker__copy { grid-area: copy; display: grid; gap: 2px; }
body.verification-page .verification-picker__copy strong { font-size: .9rem; }
body.verification-page .verification-picker__copy small { color: #7d7482; font-size: .7rem; }
body.verification-page .verification-picker__file { grid-area: file; width: 100%; overflow: hidden; color: #8c8292; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
body.verification-page .verification-picker--selected { border-style: solid; border-color: #b020bd; background: #fbf5ff; }
body.verification-page .verification-picker--selected .verification-picker__file { color: #8f1e9c; font-weight: 750; }
body.verification-page .verification-preview { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 8px; border: 1px solid #eee3f2; border-radius: 12px; background: #fbf9fc; }
body.verification-page .verification-preview img { width: 56px; height: 56px; flex: 0 0 56px; border-radius: 9px; object-fit: cover; }
body.verification-page .verification-preview div { display: grid; gap: 2px; color: #302c35; }
body.verification-page .verification-preview strong { font-size: .78rem; }
body.verification-page .verification-preview small { color: #77717d; font-size: .7rem; }
body.verification-page .verification-form .btn { min-height: 43px; }
@media (max-width: 480px) {
    body.verification-page .verification-paper-guide { grid-template-columns: 1fr 142px; gap: 9px; padding: 10px; }
    body.verification-page .verification-paper-guide__title { font-size: .76rem; }
    body.verification-page .verification-paper-guide__title span { width: 25px; height: 25px; }
    body.verification-page .verification-paper { padding: 8px 6px; }
    body.verification-page .verification-picker { min-height: 86px; padding: 9px 11px; }
}

/* Upload picker: reset the legacy direct-span rules that caused overlap on small screens. */
body.verification-page .verification-picker > .verification-picker__icon { display: grid; width: 40px; height: 40px; margin: 0; place-items: center; grid-area: icon; border-radius: 12px; background: linear-gradient(135deg, #9c22ef, #ef1685); color: #fff; font-size: 1.15rem; line-height: 1; }
body.verification-page .verification-picker > .verification-picker__copy { display: grid; width: auto; height: auto; margin: 0; place-items: start; gap: 2px; grid-area: copy; background: transparent; color: #25202b; font-size: inherit; line-height: 1.25; }
body.verification-page .verification-picker > .verification-picker__copy strong { display: block; color: #25202b; font-size: .92rem; line-height: 1.25; }
body.verification-page .verification-picker > .verification-picker__copy small { display: block; color: #7d7482; font-size: .72rem; line-height: 1.25; }
body.verification-page .verification-picker > .verification-picker__file { display: none; width: 100%; height: auto; margin: 0; grid-area: file; background: transparent; color: #8f1e9c; font-size: .7rem; line-height: 1.25; }
body.verification-page .verification-picker.verification-picker--selected > .verification-picker__file { display: block; }
body.verification-page .verification-picker__icon::first-letter { font-size: 1.05em; }
body.verification-page .verification-preview[hidden] { display: none !important; }
body.verification-page .verification-preview:not([hidden]) { display: flex; }
@media (max-width: 480px) {
    body.verification-page .verification-picker { grid-template-columns: 40px minmax(0, 1fr); min-height: 88px; padding: 12px; column-gap: 9px; }
    body.verification-page .verification-picker > .verification-picker__icon { width: 40px; height: 40px; }
}

.admin-verification-photo { display: block; width: 76px; height: 76px; overflow: hidden; border: 1px solid #e8d9ec; border-radius: 10px; background: #f8f4fa; }
.admin-verification-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.admin-verification-table td small { display: block; margin-top: 3px; color: #737985; }
.admin-verification-table .admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-verification-table .admin-actions form { margin: 0; }
@media (max-width: 720px) {
    .admin-verification-table { min-width: 720px; }
}

/* Shared verified-profile marker. It stays compact beside names across feed, chat, Stories and profile views. */
.sf-verified-badge {
    display: inline-grid;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    place-items: center;
    margin-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #9824ef, #e81b87);
    color: #fff;
    font-size: .64rem;
    font-weight: 900;
    line-height: 1;
    vertical-align: middle;
    box-shadow: 0 2px 5px rgba(152, 36, 239, .22);
}

/* Selos de assinatura: ícones vetoriais compactos, distintos e acessíveis. */
.sf-plan-badge {
    position: relative;
    display: inline-flex;
    width: 18px;
    height: 20px;
    flex: 0 0 18px;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    vertical-align: -0.18em;
    cursor: help;
    outline: 0;
    line-height: 0;
}

.sf-plan-badge svg {
    display: block;
    width: 17px;
    height: 19px;
    overflow: visible;
}

.sf-plan-badge--plus {
    color: #e22abf;
}

.sf-plan-badge--plus svg {
    filter: drop-shadow(0 2px 3px rgba(139, 46, 232, .22));
}

.sf-plan-badge--plus svg path {
    fill: currentColor;
    stroke: none;
}

.sf-plan-badge--premium {
    color: #b879e8;
}

.sf-plan-badge--premium svg {
    filter: drop-shadow(0 2px 3px rgba(103, 42, 157, .25));
}

.sf-plan-badge--premium svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sf-plan-badge::after {
    position: absolute;
    z-index: 20;
    bottom: calc(100% + 7px);
    left: 50%;
    padding: 5px 8px;
    border-radius: 7px;
    background: #21152b;
    color: #fff;
    content: attr(aria-label);
    font-size: .67rem;
    font-weight: 700;
    line-height: 1.1;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 3px);
    transition: opacity .16s ease, transform .16s ease;
    white-space: nowrap;
}

.sf-plan-badge:hover::after,
.sf-plan-badge:focus-visible::after,
.sf-plan-badge:active::after {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 600px) {
    .sf-plan-badge {
        width: 17px;
        height: 19px;
        flex-basis: 17px;
        margin-left: 5px;
    }

    .sf-plan-badge svg {
        width: 16px;
        height: 18px;
    }
}
.story-chip__name-line {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}
.story-chip__name-line strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.story-viewer__profile [data-story-name] {
    display: inline-flex;
    align-items: center;
}
.story-viewer__time {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    color: rgba(255, 255, 255, .68);
    font-size: .72rem;
    font-weight: 650;
    white-space: nowrap;
}
.story-viewer__time::before {
    content: '•';
    margin-right: 5px;
    color: rgba(255, 255, 255, .48);
}
.story-viewer__time[hidden] { display: none; }
.story-viewer__profile {
    color: inherit;
    cursor: pointer;
    text-decoration: none;
    touch-action: manipulation;
}
.story-viewer__profile:hover [data-story-name],
.story-viewer__profile:focus-visible [data-story-name] {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.story-viewer__profile:focus-visible {
    border-radius: 999px;
    outline: 2px solid rgba(255, 255, 255, .84);
    outline-offset: 4px;
}
@media (max-width: 600px) {
    .sf-verified-badge {
        width: 14px;
        height: 14px;
        flex-basis: 14px;
        margin-left: 4px;
        font-size: .56rem;
    }
.story-viewer__time { font-size: .68rem; }
}

/* Feed author navigation: keep the existing card layout while making the
   avatar and author name clearly interactive. */
.social-card__author-avatar-link {
    display: block;
    color: inherit;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
}
.social-card__author-avatar-link .social-avatar {
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.social-card__author-avatar-link:hover .social-avatar,
.social-card__author-avatar-link:focus-visible .social-avatar {
    opacity: .9;
    box-shadow: 0 0 0 3px rgba(210, 27, 120, .16);
    transform: translateY(-1px);
}
.social-card__author-link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}
.social-card__author-link:hover strong,
.social-card__author-link:focus-visible strong {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Feed cards: compact, editorial layout with restrained media sizing. */
body.home-page .social-feed-panel {
    gap: 10px;
    background: transparent !important;
}
body.home-page .social-card {
    width: 100%;
    max-width: 820px;
    justify-self: center;
    gap: 10px;
    padding: 12px 14px !important;
    border: 1px solid #e7e8ee !important;
    border-radius: 16px !important;
    background: #fff !important;
    box-shadow: 0 5px 18px rgba(31, 41, 55, .055) !important;
}
body.home-page .social-card__head {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px;
    min-width: 0;
}
body.home-page .social-card__head > .social-card__author-avatar-link .social-avatar {
    width: 38px;
    height: 38px;
    border: 1px solid #ececf2;
    border-radius: 50%;
    font-size: .78rem;
}
body.home-page .social-card__author {
    min-width: 0;
}
body.home-page .social-card__author strong {
    overflow: hidden;
    font-size: .91rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.home-page .social-card__author div {
    overflow: hidden;
    margin-top: 3px;
    font-size: .73rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}
body.home-page .social-card__menu {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 1.1rem;
}
body.home-page .social-card__body p {
    font-size: .9rem;
    line-height: 1.48;
}
body.home-page .social-card__media--single,
body.home-page .social-card__carousel {
    max-width: 100%;
    border-radius: 14px !important;
}
body.home-page .social-card__media--single:not(.is-video) img,
body.home-page .social-card__media--single.is-video .social-video-player__media,
body.home-page .social-card__carousel-slide > img,
body.home-page .social-card__carousel-slide > video,
body.home-page .social-card__carousel-slide > .social-video-player .social-video-player__media {
    max-height: min(68vh, 520px);
}
body.home-page .social-card__foot {
    gap: 7px;
    padding-top: 1px;
}
body.home-page .social-card__metrics {
    column-gap: 11px;
    row-gap: 5px;
    font-size: .73rem;
}
body.home-page .social-reactions-toggle {
    gap: 5px;
    font-size: .73rem;
}
body.home-page .social-reaction-summary {
    gap: 3px;
}
body.home-page .social-reaction-summary__chip {
    padding: 2px 5px;
    font-size: .68rem;
}
body.home-page .social-card__toolbar {
    gap: 6px;
}
body.home-page .social-card__toolbar .social-icon-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}
body.home-page .social-card__toolbar .social-icon-btn svg {
    width: 17px;
    height: 17px;
}
body.home-page .social-comment-form {
    grid-template-columns: minmax(0, 1fr) 92px;
    gap: 6px;
}
body.home-page .social-comment-form input {
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: .78rem;
}
body.home-page .social-comment-form .social-action {
    min-height: 36px;
    border-radius: 10px;
    font-size: .76rem;
}
@media (max-width: 760px) {
    body.home-page .social-card {
        max-width: none;
        padding: 11px 10px !important;
        border-radius: 14px !important;
    }
    body.home-page .social-card__head > .social-card__author-avatar-link .social-avatar {
        width: 36px;
        height: 36px;
    }
    body.home-page .social-card__author strong { font-size: .88rem; }
    body.home-page .social-card__author div { font-size: .7rem; }
    body.home-page .social-card__media--single,
    body.home-page .social-card__carousel { border-radius: 12px !important; }
    body.home-page .social-card__media--single:not(.is-video) img,
    body.home-page .social-card__media--single.is-video .social-video-player__media,
    body.home-page .social-card__carousel-slide > img,
    body.home-page .social-card__carousel-slide > video,
    body.home-page .social-card__carousel-slide > .social-video-player .social-video-player__media {
        max-height: min(66vh, 500px);
    }
}

/* Profile header: keep visitor actions grouped with the profile identity. */
body.profile-view-page .profile-head__name {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-wrap: wrap;
}
body.profile-view-page .profile-head__actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}
body.profile-view-page .profile-head__action {
    display: flex;
    margin: 0;
}
body.profile-view-page .profile-head__actions .btn {
    white-space: nowrap;
}
body.profile-view-page .profile-head__favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
body.profile-view-page .profile-head__favorite span:first-child {
    font-size: 1.05rem;
    line-height: 1;
}
@media (max-width: 760px) {
    body.profile-view-page .profile-head {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }
    body.profile-view-page .profile-head__actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding-left: 50px;
    }
    body.profile-view-page .profile-head__actions .btn {
        grid-column: auto;
    }
}
@media (max-width: 420px) {
    body.profile-view-page .profile-head__actions {
        width: 100%;
        padding-left: 0;
    }
    body.profile-view-page .profile-head__actions .btn {
        flex: 1 1 0;
    }
}

/* Mobile reaction picker: keep the choices in one compact, touch-friendly row. */
@media (max-width: 600px) {
    .social-reaction-wrap .social-reaction-bar,
    body.home-page .social-reaction-wrap .social-reaction-bar,
    body.profile-view-page .social-reaction-wrap .social-reaction-bar {
        left: 0;
        bottom: calc(100% + 8px);
        width: max-content;
        max-width: min(320px, calc(100vw - 24px)) !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 8px;
        border-radius: 16px;
        background: rgba(25, 21, 38, .94);
        border-color: rgba(168, 85, 247, .28);
        box-shadow: 0 10px 26px rgba(25, 21, 38, .22);
        scrollbar-width: none;
    }
    .social-reaction-wrap .social-reaction-bar::-webkit-scrollbar {
        display: none;
    }
    .social-reaction-bar__item {
        flex: 0 0 38px;
        width: 38px;
        height: 38px;
    }
}

/* Stories footer refinement: light controls with a focused, unobtrusive reply area. */
.story-viewer__footer {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 8px;
    padding: 9px 10px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(11, 11, 20, .18), rgba(11, 11, 20, .78));
    backdrop-filter: blur(12px);
}
.story-viewer__reaction-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.story-viewer__reaction-row button {
    width: 34px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 1.12rem;
    line-height: 1;
    opacity: .9;
    transition: background .15s ease, transform .15s ease, opacity .15s ease;
}
.story-viewer__reaction-row button:hover,
.story-viewer__reaction-row button:focus-visible,
.story-viewer__reaction-row button.is-selected {
    background: rgba(255, 255, 255, .12);
    opacity: 1;
    transform: translateY(-1px) scale(1.04);
}
.story-viewer__reply {
    display: flex;
    align-items: center;
    gap: 6px;
}
.story-viewer__reply input {
    height: 36px;
    padding: 0 13px;
    border-color: rgba(255, 255, 255, .28);
    background: rgba(255, 255, 255, .1);
    font-size: .8rem;
}
.story-viewer__reply input:focus {
    border-color: rgba(255, 255, 255, .58);
    background: rgba(255, 255, 255, .15);
}
.story-viewer__reply button {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    font-size: .95rem;
    box-shadow: 0 5px 14px rgba(236, 26, 133, .24);
}
.story-viewer__views-button {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 5px;
    padding: 5px 9px;
    border-color: rgba(255, 255, 255, .25);
    background: rgba(255, 255, 255, .07);
    font-size: .7rem;
    font-weight: 750;
}
.story-viewer__views-button strong {
    font-weight: 900;
}
.story-viewer__views-icon {
    display: inline-flex;
    width: 14px;
    height: 14px;
    align-items: center;
    justify-content: center;
}
.story-viewer__views-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.story-viewer__views-icon circle { fill: currentColor; stroke: none; }
.story-viewer__details {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-height: min(72%, 520px);
    padding: 17px;
    border-color: rgba(255, 255, 255, .14);
    border-radius: 20px;
    background: rgba(18, 16, 28, .97);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .38);
}
.story-viewer__details-head {
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.story-viewer__details-head strong { font-size: .9rem; }
.story-viewer__details h4 { margin-top: 14px; }

@media (max-width: 600px) {
    .story-viewer__footer {
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        left: 10px;
        gap: 7px;
        padding: 8px 9px 9px;
        border-radius: 18px;
    }
    .story-viewer__reaction-row {
        gap: 2px;
        justify-content: flex-start;
    }
    .story-viewer__reaction-row button {
        width: 32px;
        height: 28px;
        font-size: 1.05rem;
    }
    .story-viewer__reply input { height: 36px; }
    .story-viewer__details {
        right: 0;
        bottom: 0;
        left: 0;
        max-height: 72%;
        padding: 17px 15px calc(17px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
    }
}
/* Profile navigation in conversations: keep the existing message layout while making authors interactive. */
body.messages-page .messages-thread__profile-link,
body.messages-page .message-row__profile-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
    text-decoration: none;
    cursor: pointer;
}

body.messages-page .messages-profile-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

body.messages-page .messages-conversation__avatar,
body.messages-page .messages-conversation__title-line {
    cursor: pointer;
}

body.messages-page .messages-profile-link:hover,
body.messages-page .messages-profile-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

body.messages-page .messages-thread__profile-link:hover .messages-thread__avatar,
body.messages-page .messages-thread__profile-link:focus-visible .messages-thread__avatar,
body.messages-page .message-row__profile-link:hover .message-row__avatar,
body.messages-page .message-row__profile-link:focus-visible .message-row__avatar {
    opacity: .9;
    box-shadow: 0 0 0 3px rgba(210, 27, 120, .14);
}
/* Other-profile actions: compact menu, testimonial form, blocking and reports. */
body.profile-view-page .profile-head__more {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #e1d8e8;
    border-radius: 10px;
    background: #fff;
    color: #7d197f;
    font: inherit;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
}

body.profile-view-page .profile-head__more:hover,
body.profile-view-page .profile-head__more:focus-visible {
    border-color: #c92a99;
    background: #fdf1fb;
    outline: none;
}

body.profile-view-page .profile-actions-backdrop[hidden],
body.profile-view-page .profile-actions-sheet[hidden] {
    display: none !important;
}

body.profile-view-page .profile-actions-backdrop {
    position: fixed;
    z-index: 700;
    inset: 0;
    background: rgba(18, 13, 28, .48);
}

body.profile-view-page .profile-actions-sheet {
    position: fixed;
    z-index: 701;
    right: 50%;
    bottom: 0;
    width: min(470px, calc(100vw - 24px));
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    transform: translateX(50%);
    border: 1px solid #eadff0;
    border-bottom: 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
    box-shadow: 0 -16px 44px rgba(44, 20, 56, .2);
    color: #17181d;
}

body.profile-view-page .profile-actions-sheet__handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 13px;
    border-radius: 99px;
    background: #d8d1dc;
}

body.profile-view-page .profile-actions-sheet__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

body.profile-view-page .profile-actions-sheet__eyebrow {
    color: #9b219e;
    font-size: .67rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.profile-view-page .profile-actions-sheet h2 {
    margin: 2px 0 0;
    color: #17181d;
    font-size: 1.15rem;
}

body.profile-view-page .profile-actions-sheet__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4f1f6;
    color: #6b6870;
    cursor: pointer;
}

body.profile-view-page .profile-actions-sheet__item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 11px;
    padding: 12px 4px;
    border: 0;
    border-top: 1px solid #f0edf2;
    background: transparent;
    color: #25262b;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

body.profile-view-page .profile-actions-sheet__item:hover,
body.profile-view-page .profile-actions-sheet__item:focus-visible {
    background: #fcf5fc;
    outline: none;
}

body.profile-view-page .profile-actions-sheet__item > span:last-child {
    display: grid;
    gap: 2px;
}

body.profile-view-page .profile-actions-sheet__item strong {
    font-size: .87rem;
}

body.profile-view-page .profile-actions-sheet__item small,
body.profile-view-page .profile-actions-sheet__hint {
    color: #747782;
    font-size: .74rem;
}

body.profile-view-page .profile-actions-sheet__icon {
    display: grid;
    place-items: center;
    flex: 0 0 35px;
    width: 35px;
    height: 35px;
    border-radius: 11px;
    background: #f7eafa;
    color: #a21caf;
    font-size: 1rem;
}

body.profile-view-page .profile-actions-sheet__item.is-danger,
body.profile-view-page .profile-actions-sheet__item.is-danger .profile-actions-sheet__icon {
    color: #bb315f;
}

body.profile-view-page .profile-actions-sheet__item.is-danger .profile-actions-sheet__icon,
body.profile-view-page .profile-actions-sheet__icon.is-danger {
    background: #fff0f3;
}

body.profile-view-page .profile-actions-sheet__form {
    display: grid;
    gap: 8px;
}

body.profile-view-page .profile-actions-sheet__form[hidden] {
    display: none !important;
}

body.profile-view-page .profile-actions-sheet__form label {
    color: #353740;
    font-size: .78rem;
    font-weight: 800;
}

body.profile-view-page .profile-actions-sheet__form label span {
    color: #898c95;
    font-weight: 500;
}

body.profile-view-page .profile-actions-sheet__form textarea,
body.profile-view-page .profile-actions-sheet__form select {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #ded9e3;
    border-radius: 10px;
    background: #fff;
    color: #25262b;
    font: inherit;
    font-size: .82rem;
}

body.profile-view-page .profile-actions-sheet__form textarea {
    min-height: 94px;
    resize: vertical;
}

body.profile-view-page .profile-actions-sheet__form textarea:focus,
body.profile-view-page .profile-actions-sheet__form select:focus {
    border-color: #bd35b4;
    outline: 3px solid rgba(189, 53, 180, .12);
}

body.profile-view-page .profile-actions-sheet__hint {
    margin: 0;
    line-height: 1.4;
}

body.profile-view-page .profile-actions-sheet__error {
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #f2c5d2;
    border-radius: 9px;
    background: #fff3f6;
    color: #b52e5c;
    font-size: .75rem;
    line-height: 1.35;
}

body.profile-view-page .profile-actions-sheet__error[hidden] {
    display: none !important;
}

body.profile-view-page .profile-testimonial-success {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 18px 8px 12px;
    text-align: center;
}

body.profile-view-page .profile-testimonial-success__icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b20ff, #f31583);
    color: #fff;
    font-size: 1.65rem;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(186, 33, 194, .2);
}

body.profile-view-page .profile-testimonial-success strong {
    color: #28202f;
    font-size: 1rem;
}

body.profile-view-page .profile-testimonial-success p {
    margin: 0;
    color: #747782;
    font-size: .8rem;
    line-height: 1.45;
}

body.profile-view-page .profile-actions-sheet__form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 5px;
}

body.profile-view-page .profile-actions-sheet__confirm {
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 10px 8px 4px;
    text-align: center;
}

body.profile-view-page .profile-actions-sheet__confirm strong {
    color: #25262b;
    font-size: .95rem;
}

body.profile-view-page .profile-actions-sheet__confirm p {
    max-width: 34ch;
    margin: 0;
    color: #747782;
    font-size: .78rem;
    line-height: 1.45;
}

body.profile-view-page .profile-blocked-card {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    padding: 48px 20px;
    border: 1px solid #e1e4ea;
    background: #fff;
    color: #17181d;
    text-align: center;
}

body.profile-view-page .profile-blocked-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    background: #f5eaf7;
    color: #8d168f;
    font-size: 1.2rem;
}

body.profile-view-page .profile-blocked-card h2,
body.profile-view-page .profile-blocked-card p {
    margin: 0;
}

body.profile-view-page .profile-blocked-card p {
    color: #68707c;
    font-size: .85rem;
}

body.profile-view-page .profile-testimonials {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #e1e4ea;
}

body.profile-view-page .profile-testimonials__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 11px;
}

body.profile-view-page .profile-testimonials__head h3 {
    margin: 0;
    color: #17181d;
    font-size: .94rem;
}

body.profile-view-page .profile-testimonials__head span {
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 99px;
    background: #f7eafa;
    color: #8d168f;
    font-size: .7rem;
    font-weight: 800;
}

body.profile-view-page .profile-testimonials__list {
    display: grid;
    gap: 10px;
}

body.profile-view-page .profile-testimonial {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px;
    border: 1px solid #ece8ef;
    border-radius: 12px;
    background: #fcfbfd;
}

body.profile-view-page .profile-testimonial__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    background-position: center;
    background-size: cover;
    color: #fff;
    font-size: .65rem;
    font-weight: 900;
}

body.profile-view-page .profile-testimonial__body {
    min-width: 0;
}

body.profile-view-page .profile-testimonial__body strong {
    color: #25262b;
    font-size: .78rem;
}

body.profile-view-page .profile-testimonial__body p {
    margin: 4px 0;
    color: #4f535d;
    font-size: .79rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

body.profile-view-page .profile-testimonial__body time {
    color: #92959e;
    font-size: .68rem;
}

body.profile-view-page .profile-testimonials__empty {
    margin: 0;
    color: #747782;
    font-size: .8rem;
}

@media (max-width: 760px) {
    body.profile-view-page .profile-head__more {
        width: 34px;
        height: 34px;
    }

    body.profile-view-page .profile-actions-sheet {
        width: 100%;
        border-right: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }

    body.profile-view-page .profile-actions-sheet__form-actions .btn {
        min-height: 40px;
    }
}
/* Confirmed encounters and testimonial approval notifications. */
body.notifications-page .notification-item {
    position: relative;
    grid-template-columns: 32px 38px minmax(0, 1fr);
    gap: 9px;
    padding: 11px 42px 11px 12px;
    border-radius: 14px;
}

body.notifications-page .notification-item__delete {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #858b98;
    font: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    transition: background .16s ease, color .16s ease, transform .16s ease;
}

body.notifications-page .notification-item__delete:hover,
body.notifications-page .notification-item__delete:focus-visible {
    background: #f7eafa;
    color: #9b1db1;
    transform: scale(1.04);
}

body.notifications-page .notification-item__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: .92rem;
}

body.notifications-page .notification-item__avatar {
    width: 38px;
    height: 38px;
    font-size: .86rem;
}

body.notifications-page .notification-item__heading {
    gap: 6px;
    min-height: 22px;
    padding-right: 2px;
}

body.notifications-page .notification-item__heading strong {
    font-size: .9rem;
    line-height: 1.25;
}

body.notifications-page .notification-item__unread {
    padding: 2px 6px;
    font-size: .6rem;
}

body.notifications-page .notification-item__content p {
    margin: 3px 0 3px;
    font-size: .82rem;
    line-height: 1.35;
}

body.notifications-page .notification-item__content small {
    font-size: .7rem;
}

body.notifications-page .notification-item__actions {
    gap: 6px;
    margin-top: 8px;
}

body.notifications-page .notification-item__actions .btn {
    min-height: 32px;
    padding: 6px 12px;
    font-size: .76rem;
}

body.notifications-page .notification-item__result {
    margin-top: 7px;
    font-size: .74rem;
}

body.notifications-page .notification-item__testimonial {
    margin: 6px 0 8px;
    padding: 7px 9px;
    border-left: 2px solid #c43ab8;
    border-radius: 7px;
    background: #fcf4fc;
    color: #5b3b60;
    font-size: .74rem;
    line-height: 1.45;
}

@media (max-width: 620px) {
    body.notifications-page .notifications-shell {
        width: calc(100% - 16px);
        margin-top: 14px;
    }

    body.notifications-page .notifications-shell__head {
        margin-bottom: 12px;
    }

    body.notifications-page .notifications-shell__eyebrow {
        margin-bottom: 4px;
        font-size: .66rem;
    }

    body.notifications-page .notifications-shell h1 {
        font-size: 1.45rem;
    }

    body.notifications-page .notifications-shell__head p {
        margin-top: 4px;
        font-size: .78rem;
    }

    body.notifications-page .notifications-shell__count {
        padding: 5px 8px;
        font-size: .68rem;
    }

    body.notifications-page .notifications-list {
        gap: 7px;
    }

    body.notifications-page .notification-item {
        grid-template-columns: 30px 36px minmax(0, 1fr);
        gap: 8px;
        padding: 10px 38px 10px 10px;
    }

    body.notifications-page .notification-item__icon {
        width: 30px;
        height: 30px;
    }

    body.notifications-page .notification-item__avatar {
        width: 36px;
        height: 36px;
    }

    body.notifications-page .notification-item__delete {
        top: 7px;
        right: 7px;
        width: 22px;
        height: 22px;
        font-size: 1rem;
    }
}

body.profile-view-page .profile-stat--interactive {
    display: grid;
    place-items: center;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

body.profile-view-page .profile-stat--interactive:hover strong,
body.profile-view-page .profile-stat--interactive:focus-visible strong {
    color: #a21caf;
}

body.profile-view-page .profile-stat--interactive:focus-visible {
    border-radius: 8px;
    outline: 3px solid rgba(189, 53, 180, .15);
    outline-offset: 4px;
}

body.profile-view-page .profile-encounters-backdrop[hidden],
body.profile-view-page .profile-encounters-modal[hidden] {
    display: none !important;
}

body.profile-view-page .profile-encounters-backdrop {
    position: fixed;
    z-index: 710;
    inset: 0;
    background: rgba(18, 13, 28, .48);
}

body.profile-view-page .profile-encounters-modal {
    position: fixed;
    z-index: 711;
    top: 50%;
    left: 50%;
    display: grid;
    gap: 13px;
    width: min(520px, calc(100vw - 24px));
    max-height: min(680px, calc(100vh - 36px));
    padding: 18px;
    transform: translate(-50%, -50%);
    overflow: hidden;
    border: 1px solid #eadff0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 22px 65px rgba(44, 20, 56, .22);
    color: #17181d;
}

body.profile-view-page .profile-encounters-modal__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.profile-view-page .profile-encounters-modal h2 {
    margin: 3px 0 0;
    color: #17181d;
    font-size: 1.15rem;
}

body.profile-view-page .profile-encounters-list {
    display: grid;
    gap: 9px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}

body.profile-view-page .profile-encounter-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ece8ef;
    border-radius: 12px;
    background: #fcfbfd;
}

body.profile-view-page .profile-encounter-item__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
    font-size: .7rem;
    font-weight: 900;
    text-decoration: none;
}

body.profile-view-page .profile-encounter-item__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.profile-view-page .profile-encounter-item__avatar:hover,
body.profile-view-page .profile-encounter-item__avatar:focus-visible {
    box-shadow: 0 0 0 3px rgba(210, 27, 120, .14);
    outline: none;
}

body.profile-view-page .profile-encounter-item__body {
    min-width: 0;
}

body.profile-view-page .profile-encounter-item__name {
    color: #25262b;
    font-size: .82rem;
    font-weight: 800;
    text-decoration: none;
}

body.profile-view-page .profile-encounter-item__name:hover,
body.profile-view-page .profile-encounter-item__name:focus-visible {
    color: #9b219e;
    text-decoration: underline;
    text-underline-offset: 3px;
    outline: none;
}

body.profile-view-page .profile-encounter-item__body p {
    margin: 4px 0;
    color: #4f535d;
    font-size: .78rem;
    line-height: 1.45;
    white-space: pre-wrap;
}

body.profile-view-page .profile-encounter-item__body time {
    color: #92959e;
    font-size: .67rem;
}

body.profile-view-page .profile-encounters-empty {
    margin: 4px 0;
    color: #747782;
    font-size: .82rem;
}

@media (max-width: 600px) {
    body.profile-view-page .profile-encounters-modal {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: 76vh;
        padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
        transform: none;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 20px 20px 0 0;
    }
}

/* Message filters: keep the complete set visible without horizontal clipping. */
body.messages-page.messages-page.messages-page .messages-filters {
    flex-wrap: wrap;
    overflow: visible;
    row-gap: 6px;
}

body.messages-page.messages-page.messages-page .messages-filters .messages-chip {
    min-width: 0;
    padding-inline: 10px;
}

/* Header avatars: preserve the existing dimensions while forcing a true circle. */
.home-avatar-btn__circle,
.home-user-avatar {
    flex: 0 0 auto;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 50%;
}

.home-avatar-btn__circle .home-avatar-image,
.home-user-avatar .home-avatar-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}
/* Marca d'água de privacidade: camada visual apenas sobre imagens de conteúdo. */
.privacy-watermark-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
    line-height: 0;
}

.privacy-watermark-wrap > img {
    display: block;
    max-width: 100%;
}

.privacy-watermark {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    place-items: center;
    overflow: hidden;
    pointer-events: none;
    user-select: none;
}

.privacy-watermark-surface {
    width: 100%;
    height: 100%;
}

.privacy-watermark > span {
    color: rgba(255, 255, 255, .22);
    font-size: clamp(8px, 1.05vw, 12px);
    font-weight: 650;
    letter-spacing: .015em;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .22);
    transform: rotate(-20deg);
}

body.home-page .social-card__media--single:not(.is-video) .privacy-watermark-wrap {
    display: block;
    width: fit-content;
    margin-inline: auto;
}

body.home-page .social-card__carousel-slide .privacy-watermark-wrap,
body.discover-page:not(.admin-page) .discover-tile__media .privacy-watermark-wrap,
body.discover-page:not(.admin-page) .discover-swipe-card__media .privacy-watermark-wrap,
body.search-page .search-result__photo .privacy-watermark-wrap,
body.profile-view-page .profile-gallery-panel .profile-card__photo .privacy-watermark-wrap {
    width: 100%;
    height: 100%;
}

body.profile-view-page .profile-post__media .privacy-watermark-wrap {
    display: block;
    width: 100%;
}

body.profile-view-page .profile-photo-viewer .privacy-watermark-wrap {
    max-width: min(100%, 980px);
}

body.messages-page .message-media--image .privacy-watermark-wrap {
    display: inline-block;
}

.story-viewer__media .privacy-watermark-wrap {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 640px) {
    .privacy-watermark > span {
        font-size: 8px;
    }
}
/* Rodapé do feed: métricas leves e ações compactas, sem alterar os comportamentos existentes. */
body.home-page.home-page .social-card__foot {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 7px;
    border-top: 1px solid #f0edf2;
}

body.home-page.home-page .social-card__metrics {
    display: flex;
    align-items: center;
    gap: 4px 11px;
    min-height: 18px;
    color: #747982 !important;
    font-size: .69rem;
    line-height: 1.25;
}

body.home-page.home-page .social-card__metrics > span,
body.home-page.home-page .social-card__metrics > .social-reactions-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
}

body.home-page.home-page .social-card__metrics > span + span::before {
    margin-right: 11px;
    color: #d8d6dc;
    content: '·';
}

body.home-page.home-page .social-reactions-toggle {
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #747982;
    font: inherit;
    cursor: pointer;
}

body.home-page.home-page .social-reactions-toggle:disabled {
    cursor: default;
    opacity: 1;
}

body.home-page.home-page .social-reaction-summary {
    gap: 2px;
}

body.home-page.home-page .social-reaction-summary__chip {
    min-height: 16px;
    padding: 1px 4px;
    border: 1px solid #ece6ef;
    border-radius: 999px;
    background: #fbf9fc;
    font-size: .64rem;
}

body.home-page.home-page .social-comments-toggle {
    width: fit-content;
    min-height: 18px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d2bb7;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
}

body.home-page.home-page .social-comments-toggle:hover,
body.home-page.home-page .social-comments-toggle:focus-visible {
    color: #c21b83;
    text-decoration: none;
}

body.home-page.home-page .social-card__toolbar {
    gap: 9px;
    min-height: 32px;
    padding-top: 5px;
    border-top: 1px solid #f3f0f4;
}

body.home-page.home-page .social-card__toolbar .social-icon-btn {
    width: 32px;
    height: 32px;
    border: 0 !important;
    border-radius: 50%;
    background: transparent !important;
    color: #737782 !important;
    box-shadow: none;
}

body.home-page.home-page .social-card__toolbar .social-icon-btn:hover,
body.home-page.home-page .social-card__toolbar .social-icon-btn:focus-visible {
    transform: none;
    background: #f8edf8 !important;
    color: #a21caf !important;
}

body.home-page.home-page .social-card__toolbar .social-icon-btn--reaction.is-reacted {
    background: #fbeaf5 !important;
    color: #d21b78 !important;
}

body.home-page.home-page .social-card__toolbar .social-icon-btn svg {
    width: 17px;
    height: 17px;
}

body.home-page.home-page .social-comment-form {
    gap: 6px;
    padding-top: 1px;
}

body.home-page.home-page .social-comment-form input {
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #e5e1e8;
    border-radius: 999px;
    background: #faf9fb;
    font-size: .74rem;
}

body.home-page.home-page .social-comment-form .social-action {
    min-height: 34px;
    padding-inline: 12px;
    border-radius: 999px;
    font-size: .72rem;
}

@media (max-width: 760px) {
    body.home-page.home-page .social-card__foot {
        gap: 5px;
        padding-top: 6px;
    }

    body.home-page.home-page .social-card__metrics {
        gap: 3px 9px;
        font-size: .67rem;
    }

    body.home-page.home-page .social-card__metrics > span + span::before {
        margin-right: 9px;
    }

    body.home-page.home-page .social-comments-toggle {
        font-size: .7rem;
    }

    body.home-page.home-page .social-card__toolbar {
        padding-top: 4px;
    }
}

/* Skin Premium do perfil: camada visual opcional, sem alterar a estrutura do card. */
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) {
    --premium-profile-bg: #15111f;
    --premium-profile-surface: #1c1629;
    --premium-profile-surface-soft: #211a30;
    --premium-profile-text: #f8f2fc;
    --premium-profile-muted: #c8b9d3;
    --premium-profile-line: rgba(224, 174, 255, .18);
    background: var(--premium-profile-bg) !important;
    border-color: rgba(211, 132, 255, .34) !important;
    box-shadow: 0 10px 32px rgba(35, 13, 57, .24), 0 0 0 1px rgba(229, 168, 255, .06) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__hero,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-stats,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tab-panel,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post {
    background: var(--premium-profile-bg) !important;
    color: var(--premium-profile-text) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__title-line strong,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__headline,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__location,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__status strong,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-stats strong,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs a.is-active,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-about h2,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-posts h2,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post__meta strong,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post p {
    color: var(--premium-profile-text) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__username,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs a.is-active::after {
    color: #e9a8ff !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs a.is-active::after {
    background: linear-gradient(90deg, #b83fe8, #f06bbd) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__status small,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-stats small,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs a,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-about dt,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-about dd,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post__meta small,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post__stats {
    color: var(--premium-profile-muted) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-stats,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-tabs,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__bio,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-about dl > div,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post__stats {
    border-color: var(--premium-profile-line) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-card__empty,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-compose-bar,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-composer {
    background: var(--premium-profile-surface) !important;
    border-color: var(--premium-profile-line) !important;
    color: var(--premium-profile-text) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-compose-trigger {
    background: var(--premium-profile-surface-soft) !important;
    color: var(--premium-profile-muted) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-compose-media {
    background: rgba(210, 92, 233, .16) !important;
    color: #efa6ff !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post .social-card__foot,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post .social-card__metrics,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post .social-reactions-toggle {
    color: var(--premium-profile-muted) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post .social-icon-btn {
    background: var(--premium-profile-surface) !important;
    border-color: var(--premium-profile-line) !important;
    color: var(--premium-profile-muted) !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .profile-post .social-icon-btn--reaction.is-reacted {
    color: #f084d0 !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) .sf-plan-badge--premium {
    color: #f2c8ff;
}

@media (max-width: 760px) {
    body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) {
        box-shadow: 0 8px 24px rgba(35, 13, 57, .2), 0 0 0 1px rgba(229, 168, 255, .05) !important;
    }
}

/* O tema Premium termina depois dos contadores; abas e conteúdo seguem o tema padrão. */
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) {
    background: #fff !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tab-panels,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-tab-panel,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post {
    background: #fff !important;
    color: #17181d !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post__stats,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-posts {
    border-color: #e1e4ea !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs a {
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs a.is-active,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs a.is-active::after,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-posts h2,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about h2,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post__meta strong {
    color: #17181d !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs a.is-active::after {
    background: #d11b8a !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about dt,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about dd,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post__meta small,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post__stats {
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about dd,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post p {
    color: #333943 !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-about__bio {
    color: #333943 !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-card__empty,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-compose-bar,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-composer {
    background: #fff !important;
    border-color: #dfe2e8 !important;
    color: #17181d !important;
    box-shadow: none !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-card__empty {
    background: #f7f8fa !important;
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-gallery-panel .profile-card__empty {
    border: 1px dashed #ded7e4 !important;
    background: #faf9fb !important;
    color: #737b87 !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-compose-trigger {
    background: #f5f6f8 !important;
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-compose-media {
    background: #f9eaf7 !important;
    color: #a21caf !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post .social-card__foot,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post .social-card__metrics,
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post .social-reactions-toggle {
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post .social-icon-btn {
    background: #fff !important;
    border-color: #e1e4ea !important;
    color: #68707c !important;
}

body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-tabs ~ .profile-tab-panels .profile-post .social-icon-btn--reaction.is-reacted {
    color: #a21caf !important;
}

/* Mantém a faixa dos contadores contínua com a identificação Premium. */
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-stats {
    box-sizing: border-box;
    width: 100%;
    margin-inline: 0 !important;
    padding-inline: 22px !important;
    border-radius: 0 !important;
}

@media (max-width: 760px) {
body.profile-view-page .profile-card:has(> .profile-card__hero .sf-plan-badge--premium) > .profile-stats {
        padding-inline: 16px !important;
    }
}

/* Compositor de publicação: modal amplo e com rolagem no próprio overlay. */
body .post-modal {
    display: block;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px;
    scrollbar-gutter: stable;
}

body .post-modal__panel {
    display: block;
    width: min(780px, 100%);
    max-width: 100%;
    max-height: none !important;
    min-height: 0;
    margin: 0 auto 24px;
    overflow: visible !important;
    border-radius: 22px;
    background: #fff;
    color: #17181d;
    box-shadow: 0 24px 70px rgba(31, 41, 55, .22);
}

body .post-modal__head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #edf0f3;
    border-radius: 22px 22px 0 0;
    background: #fff;
}

body .post-modal__head h2 {
    margin: 0;
    color: #111827;
    font-size: 1.2rem;
    font-weight: 850;
    text-align: left;
}

body .post-modal__icon-btn {
    display: inline-grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 1.35rem;
    line-height: 1;
}

body .post-modal__icon-btn:hover,
body .post-modal__icon-btn:focus-visible {
    background: #fbeaf7;
    color: #a21caf;
}

body .post-modal__author {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 16px 24px 0;
}

body .post-modal__author-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 50%;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    box-shadow: 0 3px 10px rgba(162, 28, 175, .18);
    color: #fff;
    font-size: .78rem;
    font-weight: 850;
}

body .post-modal__author-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body .post-modal__author-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

body .post-modal__author-copy strong {
    overflow: hidden;
    color: #17181d;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body .post-modal__author-copy small {
    color: #68707c;
    font-size: .72rem;
}

body .post-modal__form {
    max-height: none !important;
    overflow: visible !important;
    padding: 22px 24px 24px;
}

body .post-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
    gap: 22px;
    min-height: 0;
}

body .post-modal__media,
body .post-modal__side {
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: visible !important;
}

body .post-modal__media {
    display: grid;
    align-content: start;
    gap: 12px;
    border: 0;
}

body .post-modal__side {
    display: grid;
    align-content: start;
    gap: 16px;
}

body .post-modal__dropzone {
    min-height: 220px;
    padding: 24px 18px;
    border: 1px dashed #d8c5e1;
    border-radius: 16px;
    background: #fcf8fd;
}

body .post-modal__dropzone-icon {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 13px;
    background: #f5e8f7;
    color: #a21caf;
    font-size: 1.35rem;
}

body .post-modal__dropzone strong {
    color: #30343d;
    font-size: .92rem;
}

body .post-modal__dropzone p {
    color: #7b838e;
    font-size: .76rem;
    line-height: 1.45;
}

body .post-modal__dropzone .btn {
    min-height: 38px;
    margin-top: 4px;
    padding-inline: 16px;
    font-size: .76rem;
}

body .post-modal__preview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
}

body .post-modal__preview-item {
    min-width: 0;
    gap: 8px;
    padding: 8px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #f7f8fa;
}

body .post-modal__preview-item img,
body .post-modal__preview-item video {
    width: 100%;
    height: 170px;
    border-radius: 9px;
    background: #eef0f3;
    object-fit: cover;
}

body .post-modal__field textarea {
    width: 100%;
    min-height: 172px;
    max-height: none;
    padding: 14px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #f7f8fa;
    color: #20232a;
    resize: vertical;
}

body .post-modal__visibility {
    width: 100%;
    box-sizing: border-box;
    padding: 13px;
    border: 1px solid #e2e5ea;
    border-radius: 12px;
    background: #f7f8fa;
}

body .post-modal__side > .btn-block {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #7c3aed, #d11b8a);
    box-shadow: 0 7px 17px rgba(162, 28, 175, .18);
    color: #fff;
    font-size: .86rem;
    font-weight: 850;
}

/* No profile, o modal continua fixo na viewport mesmo estando dentro da aba. */
body.profile-view-page:has(.post-modal:not([hidden])) .profile-tab-panel {
    animation: none !important;
    transform: none !important;
}

@media (max-width: 760px) {
    body .post-modal {
        padding: max(10px, env(safe-area-inset-top)) 10px max(14px, env(safe-area-inset-bottom));
    }

    body .post-modal__panel {
        width: 100%;
        min-height: calc(100dvh - 20px);
        margin: 0 auto 10px;
        border-radius: 20px;
    }

    body .post-modal__head {
        padding: 15px 16px;
        border-radius: 20px 20px 0 0;
    }

    body .post-modal__head h2 {
        font-size: 1.08rem;
    }

    body .post-modal__author {
        padding: 14px 16px 0;
    }

    body .post-modal__form {
        padding: 18px 16px max(20px, env(safe-area-inset-bottom));
    }

    body .post-modal__grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body .post-modal__media {
        display: grid;
        order: 2;
    }

    body .post-modal__side {
        display: contents;
    }

    body .post-modal__field,
    body .post-modal__media,
    body .post-modal__visibility,
    body .post-modal__terms,
    body .post-modal__status,
    body .post-modal__side > .btn-block {
        width: 100%;
        max-width: 100%;
    }

    body .post-modal__field { order: 1; }
    body .post-modal__visibility { order: 3; }
    body .post-modal__terms { order: 4; }
    body .post-modal__status { order: 5; }
    body .post-modal__side > .btn-block { order: 6; }

    body .post-modal__dropzone {
        min-height: 170px;
        padding: 20px 14px;
    }

    body .post-modal__preview-item img,
    body .post-modal__preview-item video {
        height: min(42vw, 180px);
    }

    body .post-modal__field textarea {
        min-height: 160px;
    }
}

/* Mobile: keep the composer compact with only the content area scrollable. */
@media (max-width: 760px) {
    body .post-modal__panel {
        display: flex;
        flex-direction: column;
        height: calc(100dvh - 20px);
        max-height: calc(100dvh - 20px);
        overflow: hidden !important;
    }

    body .post-modal__head,
    body .post-modal__author {
        flex: 0 0 auto;
    }

    body .post-modal__head {
        padding: 12px 14px;
    }

    body .post-modal__author {
        gap: 9px;
        padding: 10px 14px 0;
    }

    body .post-modal__author-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    body .post-modal__form {
        position: relative;
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        padding: 0 !important;
        overflow: hidden !important;
    }

    body .post-modal__form::after {
        content: '';
        position: absolute;
        z-index: 2;
        right: 0;
        bottom: 0;
        left: 0;
        height: 66px;
        border-top: 1px solid #edf0f3;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 28%);
        pointer-events: none;
    }

    body .post-modal__grid {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        min-height: 0;
        gap: 10px;
        padding: 12px 14px calc(78px + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: none;
    }

    body .post-modal__grid::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    body .post-modal__field {
        gap: 4px;
    }

    body .post-modal__field > span,
    body .post-modal__visibility legend {
        font-size: .76rem;
    }

    body .post-modal__field textarea {
        height: 88px;
        min-height: 88px;
        max-height: 116px;
        padding: 10px;
        resize: vertical;
    }

    body .post-modal__field small {
        font-size: .64rem;
    }

    body .post-modal__media {
        gap: 7px;
    }

    body .post-modal__dropzone {
        min-height: 92px;
        padding: 10px 12px;
        border-radius: 12px;
        gap: 3px;
    }

    body .post-modal__dropzone-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: .95rem;
    }

    body .post-modal__dropzone strong {
        font-size: .76rem;
    }

    body .post-modal__dropzone p {
        margin: 0;
        font-size: .64rem;
        line-height: 1.25;
    }

    body .post-modal__dropzone .btn {
        min-height: 28px;
        margin-top: 2px;
        padding-inline: 10px;
        font-size: .64rem;
    }

    body .post-modal__preview {
        gap: 6px;
    }

    body .post-modal__preview-item {
        gap: 5px;
        padding: 5px;
        border-radius: 9px;
    }

    body .post-modal__preview-item img,
    body .post-modal__preview-item video {
        height: min(30vw, 126px);
        border-radius: 7px;
    }

    body .post-modal__visibility {
        gap: 5px 8px;
        padding: 8px 10px;
        border-radius: 10px;
    }

    body .post-modal__visibility label {
        gap: 5px;
        font-size: .7rem;
    }

    body .post-modal__terms {
        font-size: .64rem;
    }

    body .post-modal__status {
        font-size: .7rem;
    }

    body .post-modal__side > .btn-block {
        position: absolute;
        z-index: 3;
        right: 14px;
        bottom: max(10px, env(safe-area-inset-bottom, 0px));
        left: 14px;
        width: auto;
        min-height: 44px;
        margin: 0;
    }
}

/* Mobile final: the composer fits in the viewport without an inner scroll area. */
@media (max-width: 760px) {
    body .post-modal {
        display: grid;
        place-items: center;
        padding: max(6px, env(safe-area-inset-top, 0px)) 8px max(6px, env(safe-area-inset-bottom, 0px)) !important;
        overflow: hidden !important;
    }

    body .post-modal__panel {
        display: block;
        width: 100%;
        height: auto;
        min-height: 0 !important;
        max-height: calc(100dvh - 12px) !important;
        overflow: visible !important;
        border-radius: 17px;
    }

    body .post-modal__head {
        padding: 9px 12px !important;
        border-radius: 17px 17px 0 0;
    }

    body .post-modal__head h2 {
        font-size: 1rem;
    }

    body .post-modal__icon-btn {
        flex-basis: 32px !important;
        width: 32px !important;
        height: 32px !important;
        font-size: 1.12rem;
    }

    body .post-modal__author {
        gap: 8px;
        padding: 7px 12px 0;
    }

    body .post-modal__author-avatar {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
        font-size: .68rem;
    }

    body .post-modal__author-copy {
        gap: 1px;
    }

    body .post-modal__author-copy strong {
        font-size: .78rem;
    }

    body .post-modal__author-copy small {
        font-size: .64rem;
    }

    body .post-modal__form {
        display: block;
        height: auto;
        min-height: 0;
        max-height: none !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    body .post-modal__form::after {
        display: none;
    }

    body .post-modal__grid {
        display: flex;
        height: auto;
        max-height: none !important;
        flex-direction: column;
        gap: 7px !important;
        padding: 9px 12px 12px !important;
        overflow: visible !important;
    }

    body .post-modal__field {
        gap: 3px !important;
    }

    body .post-modal__field > span,
    body .post-modal__visibility legend {
        font-size: .72rem !important;
    }

    body .post-modal__field textarea {
        height: 76px !important;
        min-height: 76px !important;
        max-height: 76px !important;
        padding: 8px 9px !important;
        resize: none;
        font-size: .76rem;
    }

    body .post-modal__field small {
        font-size: .6rem;
        line-height: 1;
    }

    body .post-modal__media {
        gap: 5px !important;
    }

    body .post-modal__dropzone {
        min-height: 76px !important;
        padding: 7px 10px !important;
        border-radius: 10px;
        gap: 2px !important;
    }

    body .post-modal__dropzone-icon {
        width: 24px !important;
        height: 24px !important;
        border-radius: 7px;
        font-size: .8rem;
    }

    body .post-modal__dropzone strong {
        font-size: .7rem !important;
    }

    body .post-modal__dropzone p {
        font-size: .58rem !important;
        line-height: 1.15;
    }

    body .post-modal__dropzone .btn {
        min-height: 25px !important;
        margin-top: 1px;
        padding-inline: 8px;
        font-size: .58rem;
    }

    body .post-modal__preview {
        gap: 5px !important;
    }

    body .post-modal__preview-item {
        gap: 4px !important;
        padding: 4px !important;
        border-radius: 8px;
    }

    body .post-modal__preview-item img,
    body .post-modal__preview-item video {
        height: 64px !important;
        border-radius: 6px;
    }

    body .post-modal__visibility {
        gap: 3px 7px !important;
        padding: 6px 8px !important;
        border-radius: 9px;
    }

    body .post-modal__visibility legend {
        margin-bottom: 1px;
    }

    body .post-modal__visibility label {
        gap: 4px !important;
        font-size: .64rem !important;
        line-height: 1.1;
    }

    body .post-modal__visibility input {
        width: 13px;
        height: 13px;
        margin: 0;
    }

    body .post-modal__terms {
        overflow: hidden;
        font-size: .6rem !important;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body .post-modal__status {
        font-size: .66rem !important;
        line-height: 1.15;
    }

    body .post-modal__side > .btn-block {
        position: static !important;
        width: 100%;
        min-height: 48px !important;
        margin: 0 !important;
        border-radius: 11px;
    }
}

@media (max-width: 760px) and (max-height: 640px) {
    body .post-modal {
        padding-block: 4px !important;
    }

    body .post-modal__head {
        padding-block: 7px !important;
    }

    body .post-modal__author {
        padding-top: 5px !important;
    }

    body .post-modal__grid {
        gap: 5px !important;
        padding-block: 6px 8px !important;
    }

    body .post-modal__field textarea {
        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;
    }

    body .post-modal__dropzone {
        min-height: 68px !important;
        padding-block: 5px !important;
    }

    body .post-modal__visibility {
        padding-block: 5px !important;
    }

    body .post-modal__side > .btn-block {
        min-height: 46px !important;
    }
}

/* Publicações: contenção global para textos longos, URLs e sequências sem espaços. */
body .social-card,
body .social-card__head,
body .social-card__author,
body .social-card__body,
body .social-card__foot,
body .social-card__metrics,
body .social-card__toolbar,
body .profile-post,
body .profile-post__meta,
body .profile-post__body,
body .profile-post__media,
body .profile-post__comments,
body .profile-post__comments-list,
body .social-comments-panel,
body .social-comments-list,
body .social-comment-item,
body .social-comment-item__content,
body .social-comment-item__meta-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body .social-card__author strong,
body .social-card__author div,
body .social-card__body p,
body .profile-post__meta strong,
body .profile-post__meta small,
body .profile-post__body,
body .profile-post p,
body .social-comment-item__meta strong,
body .social-comment-item__meta span,
body .social-comment-item__content p,
body .profile-post__comments,
body .profile-post__comments-list,
body .profile-post__comment-form input,
body .social-comment-form input,
body .social-comment-reply-form input {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

/* Cabeçalhos: a quebra agressiva não pode comprimir avatar e metadados. */
body .social-card__head {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body .social-card__head > .social-card__author-avatar-link {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
}

body .social-card__head > .social-card__author-avatar-link .social-avatar {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}

body .social-card__head > .social-card__author {
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body .social-card__head > .social-card__author-link {
    display: block;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body .social-card__head .social-card__author strong,
body .social-card__head .social-card__author div {
    overflow: hidden !important;
    max-width: 100%;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .social-card__head .social-post-menu-wrap,
body .social-card__head .social-card__menu {
    width: auto;
    max-width: none;
    min-width: 0;
    flex: 0 0 auto;
}

body .social-card__head .social-card__menu {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

body .profile-post__meta {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

body .profile-post__meta > .profile-post__mini-avatar {
    flex: 0 0 32px;
    width: 32px;
    min-width: 32px;
    max-width: 32px;
}

body .profile-post__meta > div {
    flex: 1 1 auto;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

body .profile-post__meta strong,
body .profile-post__meta small {
    overflow: hidden !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

body .social-card__author strong,
body .social-card__author div,
body .profile-post__meta strong,
body .profile-post__meta small {
    overflow: visible !important;
    text-overflow: clip !important;
}

body .social-card__body p,
body .profile-post__body,
body .profile-post p,
body .social-comment-item__content p {
    margin-inline: 0;
    line-height: 1.55;
}

body .social-card__media,
body .social-card__media--single,
body .social-card__carousel,
body .social-card__carousel-slide,
body .social-card__media-tile,
body .social-card__media-tile a,
body .profile-post__media,
body .profile-post__media a,
body .social-card__media img,
body .social-card__media video,
body .social-card__carousel-slide img,
body .social-card__carousel-slide video,
body .profile-post__media img,
body .profile-post__media video {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body .social-card__media img,
body .social-card__media video,
body .social-card__carousel-slide img,
body .social-card__carousel-slide video,
body .profile-post__media img,
body .profile-post__media video {
    display: block;
}

body .social-card__comment-form,
body .profile-post__comment-form,
body .social-comment-form,
body .social-comment-reply-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body .social-card__comment-form input,
body .profile-post__comment-form input,
body .social-comment-form input,
body .social-comment-reply-form input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Comentários: lista leve, sem cartões individuais pesados. */
body .social-comments-panel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-top: 8px;
}

body .social-comments-panel__head {
    min-height: 24px;
    margin-bottom: 2px;
    padding: 0 0 5px;
}

body .social-comments-panel__head strong {
    font-size: .82rem;
}

body .social-comments-panel__head span {
    font-size: .7rem;
}

body .social-comments-list {
    display: grid;
    gap: 0;
}

body .social-comment-item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 9px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(155, 92, 255, .12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-sizing: border-box;
}

body .social-comment-item:last-child {
    border-bottom: 0 !important;
}

body .social-comment-item .social-avatar--comment {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    font-size: .68rem;
}

body .social-comment-item__content {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

body .social-comment-item__meta {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    margin-bottom: 2px;
}

body .social-comment-item__meta-copy {
    display: grid;
    flex: 1 1 auto;
    gap: 1px;
    min-width: 0;
}

body .social-comment-item__meta strong {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 3px;
    min-width: 0;
    color: inherit;
    font-size: .78rem;
    line-height: 1.2;
}

body .social-comment-item__meta span {
    min-width: 0;
    color: #8a929d;
    font-size: .66rem;
    line-height: 1.2;
}

body .social-comment-item__content p {
    margin: 3px 0 0;
    color: inherit;
    font-size: .8rem;
    line-height: 1.42;
}

body .social-comment-item__actions {
    margin-top: 2px;
}

body .social-comment-reply {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0;
    padding: 0 2px;
    color: #8d168f;
    font-size: .7rem;
    font-weight: 750;
    line-height: 1;
}

body .social-comment-replies {
    gap: 0;
    margin: 4px 0 0 14px;
    padding-left: 9px;
    border-left-width: 1px;
}

body .social-comment-item--reply {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px;
    padding: 7px 0 !important;
}

body .social-comment-item--reply .social-avatar--comment {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: .62rem;
}

body .social-comment-reply-form {
    gap: 5px;
    margin-top: 5px;
}

body .social-comment-reply-form input,
body .social-comment-reply-form button {
    min-height: 32px;
    font-size: .72rem;
}

/* Legenda: alinhada ao cabeçalho, sem caixa e com expansão em três linhas. */
body .social-card__body,
body .profile-post__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 2px;
}

body .social-card__body p.post-caption,
body .profile-post__body.post-caption {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 4px;
    color: inherit;
    font-size: .9rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

body .social-card__body p.post-caption.is-collapsible.is-collapsed,
body .profile-post__body.post-caption.is-collapsible.is-collapsed {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body .post-caption-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 1px 4px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #8d168f;
    font: inherit;
    font-size: .74rem;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
}

body .post-caption-toggle:hover,
body .post-caption-toggle:focus-visible {
    color: #d3138b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 760px) {
    body .social-card__body p.post-caption,
    body .profile-post__body.post-caption {
        padding-inline: 3px;
        font-size: .86rem;
        line-height: 1.5;
    }

    body .post-caption-toggle {
        min-height: 32px;
        margin-inline: 3px;
        font-size: .72rem;
    }
}

/* Dashboard: use the profile caption rhythm without changing the media area. */
body.home-page .social-card__body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin-top: 2px;
    padding: 2px 0;
}

body.home-page .social-card__body p.post-caption {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
    padding: 0 24px !important;
    font-size: .9rem !important;
    line-height: 1.55 !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    white-space: normal !important;
}

body.home-page .social-card__body + .social-card__media,
body.home-page .social-card__body + .social-card__carousel {
    margin-top: 2px;
}

body.home-page .social-card__body > .post-caption-toggle {
    margin-left: 24px;
}

@media (max-width: 760px) {
    body.home-page .social-card__body p.post-caption {
        padding-inline: 16px !important;
        font-size: .86rem !important;
        line-height: 1.5 !important;
    }

    body.home-page .social-card__body > .post-caption-toggle {
        margin-left: 16px;
    }
}

/* Busca: cancelamento de solicitações pendentes */
body.search-page .search-result__actions form[data-friend-state="pending"] {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 2px;
}

body.search-page .search-friend-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    min-height: 28px;
    margin: 0;
    padding: 0 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #9d1aa7;
    font: inherit;
    font-size: .68rem;
    font-weight: 750;
    line-height: 1.2;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease;
}

body.search-page .search-friend-cancel:hover,
body.search-page .search-friend-cancel:focus-visible {
    background: #faeffb;
    color: #d3138b;
    outline: none;
}

body.search-page .search-friend-cancel-modal[hidden] {
    display: none !important;
}

body.search-page .search-friend-cancel-modal {
    position: fixed;
    z-index: 1600;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
}

body.search-page .search-friend-cancel-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(22, 15, 31, .42);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    animation: search-friend-cancel-fade .18s ease both;
}

body.search-page .search-friend-cancel-modal__panel {
    position: relative;
    z-index: 1;
    width: min(360px, 100%);
    box-sizing: border-box;
    padding: 22px;
    border: 1px solid #ead8f1;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 20px 55px rgba(65, 22, 83, .22);
    animation: search-friend-cancel-in .2s ease both;
}

body.search-page .search-friend-cancel-modal__panel h2 {
    margin: 0;
    color: #20152b;
    font-size: 1.04rem;
    line-height: 1.25;
}

body.search-page .search-friend-cancel-modal__panel p {
    margin: 8px 0 20px;
    color: #6f6579;
    font-size: .84rem;
    line-height: 1.45;
}

body.search-page .search-friend-cancel-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

body.search-page .search-friend-cancel-modal__actions button {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 11px;
    font: inherit;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
    transition: transform .18s ease, filter .18s ease, background-color .18s ease;
}

body.search-page .search-friend-cancel-modal__actions button:hover {
    transform: translateY(-1px);
}

body.search-page .search-friend-cancel-modal__back {
    border: 1px solid #e6ddea;
    background: #faf8fc;
    color: #665a70;
}

body.search-page .search-friend-cancel-modal__back:hover,
body.search-page .search-friend-cancel-modal__back:focus-visible {
    background: #f3edf7;
}

body.search-page .search-friend-cancel-modal__confirm {
    border: 0;
    background: linear-gradient(135deg, #9418f5, #ef1685);
    color: #fff;
    box-shadow: 0 8px 18px rgba(202, 24, 175, .2);
}

body.search-page .search-friend-cancel-modal__confirm:hover,
body.search-page .search-friend-cancel-modal__confirm:focus-visible {
    filter: brightness(1.05);
}

body.search-page .search-friend-cancel-modal__actions button:focus-visible {
    outline: 3px solid rgba(190, 31, 205, .2);
    outline-offset: 2px;
}

@keyframes search-friend-cancel-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes search-friend-cancel-in {
    from { opacity: 0; transform: translateY(8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
    body.search-page .search-friend-cancel-modal {
        padding: 12px;
    }

    body.search-page .search-friend-cancel-modal__panel {
        padding: 18px;
        border-radius: 17px;
    }

    body.search-page .search-friend-cancel-modal__panel p {
        margin-bottom: 16px;
    }

    body.search-page .search-friend-cancel-modal__actions button {
        min-height: 40px;
        flex: 1;
        padding-inline: 10px;
    }
}

/* Keep delivery/read checks aligned with the message time in every chat override. */
body.messages-page.messages-page.messages-page .message-bubble__time {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    white-space: nowrap;
}

body.messages-page.messages-page.messages-page .message-bubble__checks {
    color: #8d929b;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1;
}

body.messages-page.messages-page.messages-page .message-bubble__checks.is-read {
    color: #c026d3;
}

/* Conversation-list avatars: fixed square box plus circular, centered crop. */
body.messages-page.messages-page.messages-page .messages-conversation__avatar {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    box-sizing: border-box;
}

body.messages-page.messages-page.messages-page .messages-conversation__avatar__image {
    display: block;
    flex: 0 0 auto;
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-width: none;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 720px) {
    body.messages-page.messages-page.messages-page .messages-conversation__avatar {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
        min-width: 46px;
        min-height: 46px;
    }
}

/* Plan pricing and Match limits */
.admin-plan-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.admin-plan-price-grid label { display: grid; gap: 5px; color: #69707b; font-size: .72rem; font-weight: 700; }
.admin-plan-price-input { display: flex; align-items: center; gap: 5px; padding: 0 7px; border: 1px solid #ded6e5; border-radius: 7px; background: #fff; }
.admin-plan-price-input b { color: #747985; font-size: .72rem; }
.admin-plan-price-input input { width: 100%; min-width: 0; padding: 7px 0; border: 0; outline: 0; background: transparent; color: #25262b; font: inherit; font-size: .76rem; }
.admin-plan-price-input input[readonly] { color: #777d87; cursor: not-allowed; }
.admin-plan-pricing-fieldset { margin-top: 12px !important; padding-top: 12px !important; border-top: 1px solid #edf0f2 !important; }
.admin-plan-price-note { display: block; margin-top: 8px; color: #8b8e98; font-size: .68rem; line-height: 1.35; }
@media (max-width: 700px) {
    .admin-plan-price-grid { grid-template-columns: 1fr; gap: 7px; }
    .admin-plan-price-grid label { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* Gateway configuration placeholder */
.admin-gateway-panel, .admin-gateway-status { max-width: 980px; margin-bottom: 16px; }
.admin-gateway-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.admin-gateway-form label { display: grid; gap: 7px; color: #30343d; font-size: .82rem; font-weight: 700; }
.admin-gateway-form__wide { grid-column: 1 / -1; }
.admin-gateway-form input, .admin-gateway-form select { width: 100%; min-width: 0; padding: 10px 11px; border: 1px solid #dfe2e7; border-radius: 8px; background: #fff; color: #252a32; font: inherit; font-weight: 400; box-sizing: border-box; }
.admin-gateway-form input:focus, .admin-gateway-form select:focus { outline: 2px solid rgba(166,40,180,.16); border-color: #a628b4; }
.admin-gateway-form small { color: #777d87; font-weight: 400; font-size: .72rem; }
.admin-gateway-form .admin-button { grid-column: 1 / -1; justify-self: start; }
.admin-gateway-checklist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; color: #676d78; font-size: .82rem; }
.admin-gateway-checklist span { padding: 11px 12px; border: 1px solid #e6e7eb; border-radius: 9px; background: #fafbfc; }
.admin-gateway-checklist span::first-letter { color: #a628b4; }
@media (max-width: 700px) {
    .admin-gateway-form { grid-template-columns: 1fr; gap: 12px; }
    .admin-gateway-form__wide, .admin-gateway-form .admin-button { grid-column: auto; }
    .admin-gateway-form .admin-button { width: 100%; }
    .admin-gateway-checklist { grid-template-columns: 1fr; }
}

/* Report analysis workflow */
.admin-report-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; }
.admin-report-modal__backdrop { position: absolute; inset: 0; background: rgba(20, 16, 31, .58); backdrop-filter: blur(3px); }
.admin-report-modal__card { position: relative; display: flex; flex-direction: column; width: min(780px, 100%); max-height: min(900px, calc(100dvh - 48px)); overflow: hidden; border: 1px solid #ead8f2; border-radius: 22px; background: #fff; box-shadow: 0 24px 70px rgba(37, 18, 52, .24); animation: admin-report-modal-in .2s ease-out; }
.admin-report-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid #eeeaf1; }
.admin-report-modal__head h2 { margin: 5px 0 0; color: #25222a; font-size: 1.35rem; }
.admin-report-modal__close { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f3f1f5; color: #6c6373; font-size: 1.35rem; line-height: 1; text-decoration: none; }
.admin-report-modal__body { overflow: auto; padding: 22px 24px 24px; }
.admin-report-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-report-person { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px; border: 1px solid #ece8ef; border-radius: 14px; background: #fcfbfd; }
.admin-report-person > div { display: grid; min-width: 0; gap: 2px; }
.admin-report-person small, .admin-report-detail small, .admin-report-description small { color: #8b8491; font-size: .72rem; }
.admin-report-person strong, .admin-report-person span:not(.admin-report-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-report-person strong { color: #2b2630; font-size: .9rem; }
.admin-report-person span:not(.admin-report-avatar) { color: #7b7381; font-size: .76rem; }
.admin-report-avatar { display: grid; flex: 0 0 38px; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #9b20ff, #ec168e); color: #fff; font-weight: 800; }
.admin-report-avatar.is-soft { background: #f0ddf2; color: #9b25a5; }
.admin-report-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.admin-report-detail, .admin-report-description, .admin-report-evidence { padding: 14px 16px; border: 1px solid #eeeaf1; border-radius: 14px; }
.admin-report-detail { display: grid; gap: 4px; }
.admin-report-detail strong { color: #332c39; font-size: .88rem; }
.admin-report-description { margin-top: 12px; }
.admin-report-description p { margin: 7px 0 0; color: #55505b; font-size: .88rem; line-height: 1.5; overflow-wrap: anywhere; }
.admin-report-evidence { margin-top: 12px; background: #fdfaff; }
.admin-report-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-report-section-title h3 { margin: 0; color: #34283c; font-size: .95rem; }
.admin-report-section-title span { color: #8f249e; font-size: .74rem; font-weight: 800; }
.admin-report-evidence__item { display: grid; gap: 4px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee3f3; }
.admin-report-evidence__item strong { color: #3b3042; font-size: .82rem; }
.admin-report-evidence__item p { margin: 0; color: #5b5361; font-size: .82rem; line-height: 1.45; overflow-wrap: anywhere; }
.admin-report-evidence__item small { color: #8b8491; font-size: .72rem; }
.admin-report-evidence__item a { margin-top: 4px; color: #a125aa; font-size: .78rem; font-weight: 800; text-decoration: none; }
.admin-report-decision { display: grid; gap: 9px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eeeaf1; }
.admin-report-decision label { color: #342d39; font-size: .84rem; font-weight: 800; }
.admin-report-decision label span { color: #918995; font-size: .72rem; font-weight: 500; }
.admin-report-decision textarea { width: 100%; min-height: 90px; resize: vertical; padding: 11px 12px; border: 1px solid #e0c8eb; border-radius: 11px; background: #fff; color: #332d38; font: inherit; font-size: .84rem; box-sizing: border-box; }
.admin-report-decision textarea:focus { outline: 2px solid rgba(186, 25, 180, .14); border-color: #b522bb; }
.admin-report-decision__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-report-decision__actions .admin-button { flex: 1 1 180px; min-height: 40px; }
@keyframes admin-report-modal-in { from { opacity: 0; transform: translateY(8px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 700px) {
    .admin-report-modal { align-items: end; padding: 0; }
    .admin-report-modal__card { width: 100%; max-height: calc(100dvh - 12px); border-radius: 20px 20px 0 0; }
    .admin-report-modal__head { padding: 18px 16px 14px; }
    .admin-report-modal__body { padding: 16px; }
    .admin-report-summary, .admin-report-detail-grid { grid-template-columns: 1fr; gap: 8px; }
    .admin-report-person, .admin-report-detail, .admin-report-description, .admin-report-evidence { padding: 11px 12px; }
    .admin-report-decision__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .admin-report-decision__actions .admin-button { min-width: 0; padding-inline: 8px; font-size: .74rem; }
}

/* Mobile viewport: keep content within the device width without changing desktop layouts. */
@media (max-width: 720px) {
    html, body { max-width: 100%; overflow-x: hidden; overflow-x: clip; }
    main, .app-main, .app-main-minimal, .home-main, .discover-main, .search-main,
    .messages-main, .profile-main, .home-bottom-nav, .home-bottom-nav__shell,
    .card, form, [role="dialog"] {
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    input, textarea, select, button, img, video, iframe { max-width: 100%; box-sizing: border-box; }
    .home-bottom-nav.home-bottom-nav { width: 100%; max-width: 100%; }
    .home-bottom-nav.home-bottom-nav.home-bottom-nav .home-bottom-nav__shell { width: 100%; max-width: 100%; }

    html.messages-chat-active, body.messages-page.messages-chat-active { overflow: hidden; }
    body.messages-page.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-thread-panel {
        position: fixed;
        inset: auto 0 auto 0;
        top: var(--messages-visible-top, 0px);
        width: 100%;
        height: max(0px, calc(var(--messages-visible-height, 100dvh) - var(--messages-nav-height, calc(64px + env(safe-area-inset-bottom, 0px)))));
        max-width: 100%;
        min-height: 0;
        max-height: none;
        margin: 0;
        border-radius: 0;
        overflow: hidden;
    }
    body.messages-page.messages-page.messages-page .messages-layout--chat-open .messages-thread {
        display: grid;
        grid-template-rows: auto minmax(0, 1fr) auto;
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: 100%;
        overflow: hidden;
    }
    body.messages-page.messages-page.messages-page .messages-layout--chat-open .messages-thread__messages {
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
    body.messages-page.messages-page.messages-page .messages-layout--chat-open .messages-compose {
        grid-template-columns: auto minmax(0, 1fr) auto;
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
        flex-shrink: 0;
    }
    body.messages-page.messages-page.messages-page .messages-layout--chat-open .messages-compose textarea {
        min-width: 0;
        font-size: 16px;
    }
    body.messages-page.messages-chat-keyboard .home-bottom-nav { display: none; }
    body.messages-page.messages-chat-keyboard.messages-page.messages-page .messages-layout.messages-layout--chat-open .messages-thread-panel {
        top: var(--messages-visible-top, 0px);
        bottom: var(--messages-keyboard-inset, 0px);
        height: auto;
    }
    body.messages-page.messages-chat-keyboard.messages-page .messages-layout--chat-open .messages-compose {
        position: static;
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
    }
}
