/* Modern members feed skin. Behaviour remains in the existing PHP and JS. */
:root {
    --feed-bg: #f4f6f8;
    --feed-surface: #ffffff;
    --feed-border: #e3e7ec;
    --feed-text: #20242a;
    --feed-muted: #737d89;
    --feed-link: #0675e8;
    --feed-link-hover: #005fc0;
}

/* Shared people lists ----------------------------------------------------- */
.people-page-header {
    margin: 0 auto 20px !important;
    max-width: 960px;
    min-height: auto;
    border: 1px solid #e2eaf2;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f4f9fd 100%);
    box-shadow: 0 8px 24px rgba(28, 62, 91, .08);
}

.people-page-header .btn-toolbar {
    width: 100%;
    justify-content: center;
}

.people-page-header h1 {
    margin: 0;
    color: #24384a;
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -.025em;
}

.people-page,
.people-list-wrap {
    width: 100%;
}

.people-list-wrap {
    max-width: 960px;
}

.people-list {
    gap: 14px;
    margin-right: 0;
    margin-left: 0;
    align-items: stretch;
}

.people-list > .people-card {
    flex: 0 1 calc(50% - 7px);
}

.people-card {
    width: calc(50% - 7px);
    min-width: 0;
    margin: 0 !important;
    overflow: hidden;
    border: 1px solid #e1e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 62, 91, .08);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.people-card:hover,
.people-card:focus-within {
    border-color: #bdd9ec;
    box-shadow: 0 10px 25px rgba(28, 62, 91, .13);
    transform: translateY(-2px);
}

.people-card .card-header {
    min-width: 0;
    padding: 11px 14px !important;
    border-bottom: 1px solid #edf2f6;
    background: #f8fbfd;
    color: #24384a;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.people-card .card-header a {
    color: #176da3;
    font-weight: 700;
}

.people-card .card-body {
    display: flex;
    min-height: 104px;
    padding: 12px 14px !important;
    align-items: center;
    gap: 14px;
    color: #536778;
}

.people-card .card-body > .row,
.people-access-card .container > .row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.people-card .card-body > .row > [class*="col-"],
.people-access-card .container > .row > [class*="col-"] {
    padding: 0;
}

.people-card .card-body > .row > .col-4,
.people-access-card .container > .row > .col-6:first-child {
    flex: 0 0 84px;
    max-width: 84px;
}

.people-card .card-body > .row > .col-8,
.people-access-card .container > .row > .col-6:last-child {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding-left: 14px;
}

.people-card .chat-img {
    display: inline-flex;
    flex: 0 0 auto;
}

.people-card .chat-img img,
.people-request-card .chat-img img {
    width: 76px !important;
    height: 76px !important;
    max-width: none !important;
    max-height: none !important;
    border: 3px solid #fff;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px #d8e8f3, 0 4px 12px rgba(28, 62, 91, .14);
}

.people-card .btn {
    white-space: nowrap;
}

.people-follow-card .card-body {
    justify-content: space-between;
}

.people-access-card .container {
    width: 100%;
    padding: 0;
}

.people-access-card .btn {
    width: 100%;
    margin: 3px 0 !important;
}

.people-access-card .card-body {
    min-height: 118px;
}

.people-access-card .request-action,
.people-request-actions .request-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-weight: 600;
}

.people-card-compact {
    width: 100%;
}

.people-card-compact .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.people-card-compact .chat-img img {
    width: 48px !important;
    height: 48px !important;
}

.people-list-dropdown {
    display: block;
    padding: 8px;
}

.request-menu-header {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e6edf2;
    background: linear-gradient(135deg, #fff 0%, #f4f9fd 100%);
}

.request-menu-header-icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf4fb;
    color: #176da3;
}

.request-menu-header strong,
.request-menu-header small {
    display: block;
}

.request-menu-header strong {
    color: #24384a;
}

.request-menu-header small {
    margin-top: 1px;
    color: #718392;
}

#requestdropdown:empty::after {
    display: block;
    padding: 18px 12px;
    color: #718392;
    content: "No pending access requests";
    text-align: center;
}

.people-request-card {
    margin-bottom: 8px;
    overflow: hidden;
    border: 1px solid #e1e9f0 !important;
    border-radius: 12px !important;
    background: #fff;
    box-shadow: 0 3px 12px rgba(28, 62, 91, .08);
}

.people-request-card:last-child {
    margin-bottom: 0;
}

.people-request-card > .row:first-child {
    margin: 0;
    align-items: center;
}

.people-request-main {
    gap: 10px;
}

.people-request-person {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.people-request-person .primary-font {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.people-request-card > .row:first-child > .p-2:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.people-request-card .chat-img img {
    width: 52px !important;
    height: 52px !important;
}

.people-request-card .ml-auto,
.people-request-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.people-request-card .ml-auto .btn {
    margin: 0 !important;
}

.people-request-card .ml-auto br {
    display: none;
}

.people-request-card > .row:last-child {
    margin: 0;
    border-top: 1px solid #edf2f6;
    color: #536778;
}

.people-request-detail p {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 9px;
    text-align: left !important;
}

.people-request-kind {
    display: inline-flex;
    flex: 0 0 auto;
    padding: 3px 7px;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    background: #eaf4fb;
    color: #176da3;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: capitalize;
}

.access-request-state {
    display: flex !important;
    max-width: 680px;
    margin: 20px auto 0;
    padding: 24px !important;
    align-items: center;
    justify-content: flex-start !important;
    gap: 16px;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff 0%, #f4f9fd 100%);
    box-shadow: 0 8px 24px rgba(28, 62, 91, .08);
    text-align: left;
}

.access-request-state-icon,
.access-dialog-icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: #eaf4fb;
    color: #176da3;
    font-size: 1.15rem;
}

.access-request-state-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.access-request-state-copy strong {
    color: #24384a;
    font-size: 1.05rem;
}

.access-request-state-copy span {
    color: #617484;
}

.access-request-state-actions {
    max-width: 680px;
}

.access-request-state-actions .RequestAccess {
    display: inline-flex;
    min-height: 44px;
    padding: 9px 17px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
}

.access-management-modal .modal-content,
.access-confirm-modal .modal-content,
.access-request-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(14, 25, 38, .24);
}

.access-management-modal .modal-header,
.access-confirm-modal .modal-header,
.access-request-modal .modal-header {
    padding: 18px 20px;
    align-items: center;
    border-bottom: 1px solid #e8eef3;
    background: linear-gradient(135deg, #fff 0%, #f4f9fd 100%);
}

.access-management-modal .modal-title,
.access-confirm-modal .modal-title,
.access-request-modal .modal-title {
    color: #24384a;
    font-size: 1.12rem;
    font-weight: 700;
}

.access-management-modal .modal-body,
.access-confirm-modal .modal-body,
.access-request-modal .modal-body {
    padding: 18px 20px;
    background: #f7f9fb;
}

.access-management-modal .modal-footer,
.access-confirm-modal .modal-footer,
.access-request-modal .modal-footer {
    padding: 12px 20px;
    gap: 8px;
    border-top: 1px solid #e8eef3;
    background: #fff;
}

.access-management-modal .modal-footer .btn,
.access-confirm-modal .modal-footer .btn,
.access-request-modal .modal-footer .btn {
    min-width: 104px;
    min-height: 40px;
    margin: 0;
    border-radius: 9px;
    font-weight: 600;
}

.access-dialog-intro,
.access-confirm-copy {
    display: flex;
    margin-bottom: 16px;
    padding: 14px;
    align-items: center;
    gap: 12px;
    border: 1px solid #dfe9f0;
    border-radius: 12px;
    background: #fff;
    color: #536778;
}

.access-dialog-intro strong,
.access-confirm-copy strong {
    display: block;
    color: #24384a;
}

.access-dialog-intro small {
    display: block;
    margin-top: 2px;
    color: #6f8190;
}

.access-confirm-copy {
    margin-bottom: 0;
}

.access-confirm-copy p {
    margin: 0;
}

.access-confirm-copy div p {
    margin-top: 3px;
}

.AlbumAccessDiv .people-list {
    max-height: min(58vh, 620px);
    padding: 2px;
    overflow-y: auto;
}

.access-confirm-approve .modal-footer .btn-danger {
    border-color: #218838;
    background: #218838;
}

.people-request-card p {
    margin: 0;
}

@media (max-width: 767.98px) {
    .people-list {
        gap: 10px;
    }

    .people-list > .people-card,
    .people-card {
        width: 100%;
        flex-basis: 100%;
    }

    .people-page-header {
        margin-right: 8px !important;
        margin-left: 8px !important;
        border-radius: 13px;
    }
}

@media (max-width: 479.98px) {
    .people-page {
        margin-right: 0;
        margin-left: 0;
    }

    .people-list-wrap {
        padding-right: 8px;
        padding-left: 8px;
    }

    .people-card .card-body {
        min-height: 92px;
        padding: 10px 12px !important;
        gap: 10px;
    }

    .people-card .chat-img img {
        width: 64px !important;
        height: 64px !important;
    }

    .people-card .card-body > .row > .col-4,
    .people-access-card .container > .row > .col-6:first-child {
        flex-basis: 68px;
        max-width: 68px;
    }

    .people-card .card-body > .row > .col-8,
    .people-access-card .container > .row > .col-6:last-child {
        padding-left: 10px;
    }

    .people-follow-card .card-body {
        flex-wrap: wrap;
    }

    .people-request-card > .row:first-child {
        align-items: flex-start;
        flex-direction: column;
    }

    .people-request-card .ml-auto {
        width: 100%;
        padding-top: 0 !important;
        justify-content: stretch;
    }

    .people-request-card .ml-auto .btn {
        flex: 1 1 130px;
    }

    .people-request-detail p {
        flex-direction: column;
    }

    .access-request-state {
        margin: 12px 8px 0;
        padding: 18px !important;
        align-items: flex-start;
    }

    .access-request-state-actions {
        padding: 10px 8px !important;
    }

    .access-request-state-actions .RequestAccess {
        width: 100%;
    }

    .access-management-modal .modal-dialog,
    .access-confirm-modal .modal-dialog,
    .access-request-modal .modal-dialog {
        margin: 8px;
    }

    .access-management-modal .modal-header,
    .access-confirm-modal .modal-header,
    .access-request-modal .modal-header,
    .access-management-modal .modal-body,
    .access-confirm-modal .modal-body,
    .access-request-modal .modal-body {
        padding: 14px;
    }

    .access-management-modal .modal-footer,
    .access-confirm-modal .modal-footer,
    .access-request-modal .modal-footer {
        padding: 10px 14px;
    }

    .access-management-modal .modal-footer .btn,
    .access-confirm-modal .modal-footer .btn,
    .access-request-modal .modal-footer .btn {
        flex: 1 1 0;
        min-width: 0;
    }

    .access-dialog-intro,
    .access-confirm-copy {
        padding: 12px;
        align-items: flex-start;
    }

    .AlbumAccessDiv .people-list {
        max-height: 55vh;
    }
}

@media (prefers-reduced-motion: reduce) {
    .people-card {
        transition: none;
    }
}

.profile-progress-link {
    border-top: 1px solid #e4e8ec;
    color: #096fc9 !important;
    font-weight: 700;
}

.onboarding-progress-strip-wrap { width:100%; max-width:790px; margin:10px auto 0; padding:0 10px; }
.onboarding-progress-strip { display:flex; align-items:center; gap:9px; min-height:44px; padding:7px 8px 7px 12px; border:1px solid #cfe0f0; border-radius:11px; background:#f7fbff; box-shadow:0 4px 14px rgba(31,71,108,.07); color:#53606d; }
.onboarding-progress-strip-copy { min-width:0; display:flex; flex:1 1 auto; align-items:baseline; gap:6px; font-size:.84rem; line-height:1.25; white-space:nowrap; }
.onboarding-progress-strip-copy strong { color:#283746; }
.onboarding-progress-separator { color:#8ca1b5; }
.onboarding-progress-strip .ContinueOnboarding { flex:0 0 auto; padding:5px 10px; border-radius:7px; font-size:.78rem; font-weight:750; }
.onboarding-progress-strip-close { width:28px; height:28px; flex:0 0 28px; padding:0; border:0; background:transparent; color:#75818d; font-size:1.35rem; line-height:1; cursor:pointer; }

.onboarding-overlay-modal .modal-dialog { width:calc(100% - 24px); max-width:560px; margin-right:auto; margin-left:auto; }
.onboarding-overlay-modal .modal-content { overflow:hidden; border:0; border-radius:18px; background:transparent; box-shadow:0 22px 70px rgba(14,25,38,.3); }
.onboarding-overlay-modal .modal-body { height:min(760px,calc(100vh - 32px)); padding:0; }
.onboarding-overlay-modal iframe { display:block; width:100%; height:100%; border:0; background:#f7f9fc; }

.own-profile-setup { margin:0 0 12px; padding:18px; border:1px solid #cfe0f0; border-radius:14px; background:#fff; box-shadow:0 5px 18px rgba(31,71,108,.08); color:#33404d; }
.own-profile-setup-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.own-profile-setup-heading h2 { margin:0; color:#253545; font-size:1.15rem; font-weight:800; }
.own-profile-setup-heading strong { color:#1875c8; font-size:1.05rem; }
.own-profile-setup-progress { height:9px; margin:10px 0 14px; border-radius:999px; background:#e8eef4; }
.own-profile-setup-progress .progress-bar { border-radius:999px; background:linear-gradient(90deg,#1686df,#7554cb); }
.own-profile-setup-milestones { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px 14px; margin:0; padding:0; list-style:none; }
.own-profile-setup-milestones li { display:flex; align-items:center; gap:8px; padding:7px 9px; border:1px solid transparent; border-radius:8px; color:#7b8691; font-size:.9rem; }
.own-profile-setup-milestones .is-complete { color:#257343; }
.own-profile-setup-milestones .is-incomplete i { color:#c8d0d8; font-size:.72rem; }
.own-profile-setup-milestones .is-next { border-color:#b9d9f5; background:#eff7ff; color:#155f9f; font-weight:750; }
.own-profile-setup-next { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; padding-top:13px; border-top:1px solid #e7ebef; font-size:.92rem; }
.own-profile-setup-next > div > span { color:#6f7b86; }
.own-profile-setup-next .btn { flex:0 0 auto; border-radius:8px; font-weight:750; }
.own-profile-setup-complete { margin:14px 0 0; padding-top:13px; border-top:1px solid #e7ebef; color:#257343; font-weight:700; }

@media (max-width:575.98px) {
    .onboarding-progress-strip-wrap { margin-top:7px; padding:0 7px; }
    .onboarding-progress-strip { gap:6px; min-height:42px; padding:6px 5px 6px 9px; }
    .onboarding-progress-strip-copy { display:block; overflow:hidden; font-size:.76rem; white-space:normal; }
    .onboarding-progress-strip-copy strong { white-space:nowrap; }
    .onboarding-progress-separator { display:none; }
    .onboarding-progress-strip-copy > span:last-child { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .onboarding-progress-strip .ContinueOnboarding { padding:5px 8px; }
    .onboarding-overlay-modal .modal-dialog { width:calc(100% - 16px); margin-top:8px; margin-bottom:8px; }
    .onboarding-overlay-modal .modal-body { height:calc(100vh - 16px); }
    .own-profile-setup { margin-right:7px; margin-left:7px; padding:15px 13px; }
    .own-profile-setup-milestones { grid-template-columns:1fr; gap:4px; }
    .own-profile-setup-next { align-items:flex-start; flex-direction:column; }
}

.onboarding-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 14px;
    background: linear-gradient(145deg,#f4f8fc 0%,#fff 48%,#f7f2fb 100%);
}

.onboarding-card {
    width: 100%;
    min-width: 0;
    max-width: 520px;
    padding: 25px 20px;
    border: 1px solid #dfe7ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(34,52,72,.12);
    color: #28313b;
    text-align: center;
}

.onboarding-brand { display:inline-block; margin-bottom:20px; color:#1875c8; font-size:1.15rem; font-weight:800; letter-spacing:.02em; }
.onboarding-progress-copy { display:flex; justify-content:space-between; margin-bottom:7px; color:#687582; font-size:.82rem; }
.onboarding-progress-copy strong { color:#1875c8; }
.onboarding-progress { height:8px; margin-bottom:25px; border-radius:999px; background:#e8eef4; }
.onboarding-progress .progress-bar { border-radius:999px; background:linear-gradient(90deg,#1686df,#7554cb); }
.onboarding-icon { width:66px; height:66px; display:flex; align-items:center; justify-content:center; margin:0 auto 16px; border-radius:50%; background:#e9f4ff; color:#1477cb; font-size:1.7rem; }
.onboarding-verified-icon { background:#edf9f1; color:#27985a; }
.onboarding-complete-icon { background:#e7f8ee; color:#209551; }
.onboarding-card h1 { margin:0 0 9px; color:#252d35; font-size:1.65rem; font-weight:800; line-height:1.22; overflow-wrap:anywhere; }
.onboarding-lead { margin:0 0 22px; color:#66727e; font-size:1rem; }
.onboarding-task { margin:20px 0; }
.onboarding-task h2 { margin:0 0 5px; color:#303943; font-size:1.12rem; font-weight:750; }
.onboarding-task p { margin:0; color:#707b86; font-size:.92rem; }
.onboarding-primary { width:100%; min-height:49px; display:flex; align-items:center; justify-content:center; border-radius:10px; font-weight:750; }
.onboarding-skip { margin-top:8px; color:#6e7780; font-size:.9rem; }
.onboarding-avatar { width:92px; height:92px; margin:0 auto 16px; border:4px solid #fff; border-radius:50%; object-fit:cover; box-shadow:0 0 0 3px #d5e8f9,0 8px 20px rgba(28,62,91,.16); }
.onboarding-details-form { margin-top:18px; text-align:left; }
.onboarding-details-form .form-group { margin-bottom:15px; }
.onboarding-details-form label { margin-bottom:6px; font-size:.88rem; font-weight:700; }
.onboarding-details-form .form-control { min-height:45px; border-radius:8px; }
.onboarding-badge-example { display:inline-flex; align-items:center; gap:6px; margin:0 0 22px; padding:6px 11px; border-radius:999px; background:#e8f8ef; color:#22834e; font-size:.82rem; font-weight:800; }
.onboarding-discover { display:inline-block; margin-top:14px; color:#716c78; font-size:.88rem; }
.onboarding-age-options { display:grid; grid-template-columns:1fr; gap:14px; margin:20px 0 6px; text-align:left; }
.onboarding-age-option { display:flex; min-width:0; flex-direction:column; padding:19px 17px; border:1px solid #dce5ee; border-radius:13px; background:#fff; box-shadow:0 7px 20px rgba(34,52,72,.07); }
.onboarding-age-option--hardcore { padding-top:14px; padding-bottom:14px; border-color:#aacff0; background:#f5faff; box-shadow:0 8px 22px rgba(24,117,200,.12); }
.onboarding-age-option--hardcore p { margin-bottom:10px; }
.onboarding-age-option--hardcore ul { margin-bottom:10px; line-height:1.4; }
.onboarding-age-option h2 { margin:0 0 7px; color:#28313b; font-size:1.05rem; font-weight:800; line-height:1.3; }
.onboarding-age-option p { margin:0 0 14px; color:#66727e; font-size:.88rem; line-height:1.45; }
.onboarding-age-option ul { margin:0 0 17px; padding-left:19px; color:#48535e; font-size:.86rem; line-height:1.55; }
.onboarding-age-option .onboarding-age-action { width:100%; min-height:44px; display:flex; align-items:center; justify-content:center; margin-top:auto; border-radius:9px; font-size:.9rem; font-weight:750; white-space:normal; }
.onboarding-age-separator { align-self:center; color:#6b7681; font-size:.82rem; font-weight:800; text-align:center; }

@media (min-width: 576px) {
    .onboarding-age-options { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
}

@media (min-width: 576px) {
    .onboarding-card { padding:34px 42px; }
}

@media (max-width: 575.98px) {
    .onboarding-card { width:calc(100vw - 28px); }
}

/* Compact autoplaying visitor carousel between the profile header and feed. */
.profile-visitors {
    margin: 14px 0;
    padding: 12px 14px 10px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(30, 45, 62, .055);
}

.profile-visitors-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 2px 9px;
    color: #667484;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.profile-visitors-heading i {
    color: #087ff5;
    font-size: .9rem;
}

.profile-visitors-list.owl-carousel {
    width: 100%;
}

/* The shared carousel script makes every .item square. Visitors only need a
   short row, so this deliberately overrides that generated inline height. */
.profile-visitors-list .profile-visitor.item {
    display: block;
    box-sizing: border-box;
    height: 86px !important;
    min-width: 0;
    padding: 8px 7px 7px;
    overflow: hidden;
    border: 1px solid #e6ebf0;
    border-radius: 11px;
    background: #f8fafc;
    color: #0677ed;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.profile-visitors-list .profile-visitor.item:hover {
    border-color: #bddcff;
    background: #f2f8ff;
}

.profile-visitor-avatar {
    display: block;
    width: 48px !important;
    height: 48px !important;
    margin: 0 auto;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #edf1f5;
    box-shadow: 0 1px 5px rgba(34, 49, 63, .14);
    color: transparent;
    font-size: 0;
    object-fit: cover;
}

.profile-visitor-name {
    display: block;
    min-width: 0;
    margin-top: 4px;
    overflow: hidden;
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-visitor:hover .profile-visitor-name {
    text-decoration: underline;
}

.profile-visitors-list .owl-stage-outer {
    border-radius: 11px;
}

.profile-visitors-list .owl-dots,
.profile-visitors-list .owl-nav {
    display: none;
}

/* Home-feed media/member strips use the same visual language as visitors. */
.members-strip {
    margin: 12px 0;
    padding: 12px 14px 10px;
    overflow: hidden;
    border: 1px solid #e0e6ed;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(30, 45, 62, .055);
    text-align: left;
}

.members-strip-heading {
    display: flex;
    align-items: center;
    min-height: 18px;
    margin: 0 2px 9px;
    color: #667484;
    font-size: .78rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.members-strip-heading a,
.members-strip-heading span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.members-strip-heading i {
    color: #087ff5;
    font-size: .9rem;
}

.hardcore-members-strip {
    border-color: #ead08a;
    background: linear-gradient(135deg, #fff 0%, #fffcf2 100%);
}

.hardcore-members-strip .members-strip-heading,
.hardcore-members-strip .members-strip-heading i {
    color: #a97900;
}

.hardcore-members-strip .members-strip-heading .hardcore-feature-link {
    margin-left: auto;
    padding-left: 16px;
    color: #7b8490;
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    text-decoration: none;
    white-space: nowrap;
}

.hardcore-members-strip .members-strip-heading .hardcore-feature-link:hover {
    color: #59636f;
    text-decoration: underline;
}

.members-strip-carousel .members-strip-item.item {
    display: block;
    box-sizing: border-box;
    height: 94px !important;
    overflow: hidden;
    border: 1px solid #e5eaf0;
    border-radius: 11px;
    background: #f4f7fa;
    color: #0677ed;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.members-strip-carousel .members-strip-item.item:hover {
    border-color: #bddcff;
    background: #f2f8ff;
}

.latest-upload-item img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    background: #edf1f5;
    object-fit: cover;
}

.members-strip-carousel .hardcore-member-item {
    padding: 8px 6px 6px;
    border-color: #ead9a8 !important;
    background: #fffdf7 !important;
}

.hardcore-member-item img {
    display: block;
    width: 58px !important;
    height: 58px !important;
    margin: 0 auto;
    border: 2px solid #e3bb50;
    border-radius: 50%;
    background: #edf1f5;
    box-shadow: 0 2px 7px rgba(143, 99, 0, .18);
    color: transparent;
    font-size: 0;
    object-fit: cover;
}

.hardcore-member-item span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: #806000;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.members-strip-carousel .owl-stage-outer {
    border-radius: 11px;
}

.members-strip-carousel .owl-dots,
.members-strip-carousel .owl-nav {
    display: none;
}

/* A single compact home-feed panel replaces the old alert and floating CTAs. */
.feed-support-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
    padding: 12px 14px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(30, 45, 62, .055);
    text-align: left;
}

.feed-support-copy {
    display: flex;
    flex: 1 1 auto;
    align-items: flex-start;
    gap: 11px;
    min-width: 0;
}

.feed-support-icon {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff0f1;
    color: #dc3545;
}

.feed-support-content {
    flex: 1 1 auto;
    min-width: 0;
}

.feed-support-content > strong {
    display: block;
    color: #26313d;
    font-size: .88rem;
    line-height: 1.25;
}

.feed-support-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 18px;
    margin-top: 9px;
    color: #394756;
    font-size: .78rem;
    line-height: 1.35;
}

.feed-support-benefits > span {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
}

.feed-support-benefits > span > span {
    flex: 0 0 1.2em;
    text-align: center;
}

.feed-support-recovery {
    display: block;
    margin-top: 9px;
    color: #8b97a3;
    font-size: .68rem;
    line-height: 1.35;
}

.feed-support-actions {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    align-items: stretch;
    gap: 7px;
}

.feed-support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    font-size: .76rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
}

.feed-support-btn img {
    width: 21px;
    height: 21px;
    object-fit: contain;
}

.feed-support-hardcore-icon {
    color: #ffd34d;
    font-size: 1rem;
    filter: drop-shadow(0 1px 1px rgba(82, 51, 0, .35));
}

.hardcore-cta {
    display: inline-flex;
    min-height: 38px;
    padding: 8px 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid #a6000a !important;
    border-radius: 9px !important;
    background: #b9000b !important;
    color: #fff !important;
    font-size: .82rem !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 4px 11px rgba(151, 0, 9, .2);
}

.hardcore-cta:hover,
.hardcore-cta:focus {
    border-color: #900008 !important;
    background: #a6000a !important;
    color: #fff !important;
    box-shadow: 0 6px 15px rgba(151, 0, 9, .27);
    transform: translateY(-1px);
}

.hardcore-cta .feed-support-hardcore-icon {
    flex: 0 0 auto;
}

.feed-support-donate {
    background: #b9000b;
}

.feed-support-message {
    background: #149db5;
}

.feed-support-verify {
    background: #159447;
}

.feed-support-btn:hover {
    color: #fff !important;
    filter: brightness(.94);
}

@media (max-width: 575.98px) {
    .profile-visitors {
        margin: 10px 0;
        padding: 10px 9px 8px;
        border-radius: 12px;
    }

    .profile-visitors-heading {
        margin-bottom: 7px;
        font-size: .72rem;
    }

    .profile-visitors-list .profile-visitor.item {
        height: 78px !important;
        padding: 6px 5px;
        border-radius: 9px;
    }

    .profile-visitor-avatar {
        width: 42px !important;
        height: 42px !important;
    }

    .profile-visitor-name {
        font-size: .7rem;
    }

    .members-strip {
        margin: 10px 0;
        padding: 10px 9px 8px;
        border-radius: 12px;
    }

    .members-strip-heading {
        margin-bottom: 7px;
        font-size: .72rem;
    }

    .members-strip-carousel .members-strip-item.item {
        height: 78px !important;
        border-radius: 9px;
    }

    .members-strip-carousel .hardcore-member-item {
        padding: 6px 4px 4px;
    }

    .hardcore-member-item img {
        width: 46px !important;
        height: 46px !important;
    }

    .hardcore-member-item span {
        font-size: .66rem;
    }

    .feed-support-panel {
        display: block;
        margin: 10px 0;
        padding: 8px 10px;
        border-radius: 12px;
    }

    .feed-support-icon {
        flex-basis: 32px;
        width: 32px;
        height: 32px;
    }

    .feed-support-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4px 10px;
        margin-top: 6px;
        font-size: .72rem;
    }

    .feed-support-recovery {
        margin-top: 6px;
        font-size: .66rem;
    }

    .feed-support-actions {
        flex-direction: row;
        margin-top: 7px;
    }

    .feed-support-btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 8px;
    }
}

body {
    background: var(--feed-bg);
    color: var(--feed-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
    color: var(--feed-link);
}

a:hover,
a:focus {
    color: var(--feed-link-hover);
}

.TopNav {
    box-shadow: 0 2px 12px rgba(20, 28, 38, .14);
}

.mobile-settings-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: 6px;
    color: rgba(255, 255, 255, .5);
    background: transparent;
    border: 0;
    font-size: 1.25rem;
    line-height: 1;
    text-decoration: none;
}

.mobile-settings-toggle:hover,
.mobile-settings-toggle:focus {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.photo-upload-modal .modal-dialog {
    width: calc(100% - 24px);
    max-width: 560px;
    margin-right: auto;
    margin-left: auto;
}

.photo-upload-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--feed-surface);
    box-shadow: 0 22px 70px rgba(14, 25, 38, .28);
}

.photo-upload-modal .modal-header {
    align-items: flex-start;
    padding: 20px 22px 17px;
    border-bottom: 1px solid var(--feed-border);
}

.photo-upload-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
}

.photo-upload-heading-icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #eaf4ff;
    color: var(--feed-link);
    font-size: 1.15rem;
}

.photo-upload-modal .modal-title {
    margin: 0;
    color: #26313d;
    font-size: 1.18rem;
    font-weight: 800;
}

.photo-upload-subtitle {
    margin: 2px 0 0;
    color: var(--feed-muted);
    font-size: .84rem;
    line-height: 1.35;
}

.photo-upload-modal .close {
    width: 36px;
    height: 36px;
    margin: 1px -7px 0 10px;
    padding: 0;
    border-radius: 50%;
    color: #64717e;
    line-height: 34px;
}

.photo-upload-modal .modal-body {
    padding: 20px 22px;
}

.photo-upload-section {
    margin: 0 0 18px;
}

.photo-upload-section > label,
.photo-upload-section-label,
.photo-upload-label-row label {
    margin-bottom: 7px;
    color: #34404c;
    font-size: .88rem;
    font-weight: 750;
}

.photo-upload-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.photo-upload-new-album-toggle {
    margin: -5px -5px 3px 0;
    padding: 5px;
    border: 0;
    background: transparent;
    color: var(--feed-link);
    font-size: .8rem;
    font-weight: 750;
    cursor: pointer;
}

.photo-upload-new-album-toggle:hover,
.photo-upload-new-album-toggle:focus,
.photo-upload-new-album-toggle.is-open {
    color: var(--feed-link-hover);
    text-decoration: underline;
}

.photo-upload-album-options .form-control,
.photo-upload-modal #ImgCategory,
.photo-upload-new-album .form-control {
    height: 44px;
    border-color: #d9e0e7;
    border-radius: 10px;
    background-color: #fff;
    color: #303a45;
    box-shadow: none;
}

.photo-upload-album-options .form-control:focus,
.photo-upload-modal #ImgCategory:focus,
.photo-upload-new-album .form-control:focus {
    border-color: #72afe8;
    box-shadow: 0 0 0 3px rgba(6, 117, 232, .12);
}

.photo-upload-album-loading,
.photo-upload-album-error {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid #dfe5eb;
    border-radius: 10px;
    color: var(--feed-muted);
    font-size: .84rem;
}

.photo-upload-album-loading i {
    margin-right: 8px;
}

.photo-upload-album-error,
.photo-upload-album-feedback.is-error {
    color: #b52e3b;
}

.photo-upload-new-album {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 112px auto;
    gap: 8px;
    margin-top: 9px;
    padding: 10px;
    border: 1px solid #dce6ef;
    border-radius: 11px;
    background: #f7fafc;
}

.photo-upload-new-album[hidden] {
    display: none !important;
}

.photo-upload-new-album .btn {
    min-width: 78px;
    border-radius: 9px;
    font-size: .86rem;
    font-weight: 700;
}

.photo-upload-album-feedback {
    min-height: 0;
    margin-top: 6px;
    font-size: .78rem;
}

.photo-upload-album-feedback.is-success {
    color: #257343;
}

.photo-upload-file-picker {
    overflow: hidden;
    min-height: 48px;
    border: 1px dashed #aebdcb;
    border-radius: 11px;
    background: #f8fafc;
}

.photo-upload-file-picker .input-group-text,
.photo-upload-file-picker .custom-file-label,
.photo-upload-file-picker .custom-file-label::after {
    height: 46px;
    border: 0;
    background: transparent;
    line-height: 30px;
}

.photo-upload-file-picker .input-group-text {
    padding-right: 4px;
    color: var(--feed-link) !important;
}

.photo-upload-file-picker .custom-file-label {
    overflow: hidden;
    padding-left: 8px;
    color: #4d5965;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.photo-upload-file-picker .custom-file-label::after {
    padding-right: 13px;
    padding-left: 13px;
    color: var(--feed-link);
    font-weight: 750;
}

.photo-upload-preview:not(:empty) {
    gap: 7px;
    margin: -4px 0 18px;
    padding: 10px;
    border-radius: 11px;
    background: #f4f7fa;
}

.photo-upload-preview > div {
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px;
}

.photo-upload-preview img {
    object-fit: cover;
}

.photo-upload-options {
    display: grid;
    gap: 1px;
    padding: 6px 12px;
    border: 1px solid #e0e6ec;
    border-radius: 11px;
    background: #fafbfc;
}

.photo-upload-options .form-check {
    min-height: 39px;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 4px 8px 28px;
}

.photo-upload-options .form-check + .form-check {
    border-top: 1px solid #e7ebef;
}

.photo-upload-options .form-check-input {
    margin-top: 0;
}

.photo-upload-options .form-check-label {
    color: #414d59;
    font-size: .87rem;
}

.photo-upload-modal .modal-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 15px 22px 18px;
    border-top: 1px solid var(--feed-border);
}

.photo-upload-modal .modal-footer .btn {
    min-height: 44px;
    margin: 0;
    border-radius: 10px;
    font-weight: 750;
}

.photo-upload-modal .modal-footer .btn-light {
    border-color: #dce2e8;
    background: #f4f6f8;
    color: #53606c;
}

.video-upload-modal .photo-upload-heading-icon {
    background: #eef0ff;
    color: #6257c8;
}

.video-upload-title .form-control {
    height: 44px;
    border-color: #d9e0e7;
    border-radius: 10px;
    color: #303a45;
    box-shadow: none;
}

.video-upload-title .form-control:focus {
    border-color: #72afe8;
    box-shadow: 0 0 0 3px rgba(6, 117, 232, .12);
}

.video-upload-selected {
    min-height: 18px;
    margin: 6px 3px 0;
    overflow-wrap: anywhere;
    color: #257343;
    font-size: .78rem;
}

.video-upload-options {
    margin-bottom: 18px;
}

.video-upload-options .form-check {
    border-top: 0 !important;
}

.video-upload-options .form-check-label {
    margin-left: 5px;
}

.video-upload-progress {
    height: 22px;
    margin-top: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e7ecf1;
}

.video-upload-progress .progress-bar {
    min-width: 0;
    border-radius: 999px;
    background: linear-gradient(90deg,#1686df,#7554cb);
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    transition: width .25s ease;
}

.comment-compose-modal .modal-dialog {
    max-width: 520px;
}

.comment-compose-modal .photo-upload-heading-icon {
    background: #edf5ff;
    color: #176fba;
}

.comment-compose-modal .modal-body {
    min-height: 164px;
    display: flex;
    padding-top: 18px;
    padding-bottom: 18px;
}

.comment-compose-modal #CommentModalTextArea {
    width: 100%;
    min-height: 128px;
    padding: 13px 14px;
    border: 1px solid #d9e0e7;
    border-radius: 11px;
    background: #fbfcfd;
    color: #303a45;
    font-size: .94rem;
    line-height: 1.5;
    resize: vertical;
    box-shadow: none;
}

.comment-compose-modal #CommentModalTextArea:focus {
    border-color: #72afe8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(6, 117, 232, .12);
}

.image-view-modal .modal-dialog {
    max-width: 760px;
}

.image-view-modal .photo-upload-heading-icon {
    background: #eef1ff;
    color: #6356c7;
}

.image-view-modal .modal-body {
    padding: 16px 18px 20px;
    background: #f7f9fb;
}

.image-view-modal .modal-body > .container {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-left: 0;
}

.image-view-modal .lrgImg {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 62vh;
    margin: 0 auto 16px;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: #15191e;
    object-fit: contain;
    box-shadow: 0 8px 24px rgba(20, 28, 38, .14);
}

.image-view-modal .rating_picInPost {
    display: inline-flex;
    margin: 0 auto 13px;
    padding: 7px 12px;
    border: 1px solid #e0e5eb;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(25, 35, 48, .05);
}

.image-view-modal .modal-footer {
    grid-template-columns: 1fr;
}

.image-view-modal .modal-footer .btn {
    width: 100%;
}

.content-settings-modal .modal-dialog {
    max-width: 520px;
}

.content-settings-modal .photo-upload-heading-icon {
    background: #edf5ff;
    color: #176fba;
}

.album-new-modal .photo-upload-heading-icon {
    background: #eaf8ef;
    color: #278253;
}

.video-edit-modal .photo-upload-heading-icon {
    background: #eef0ff;
    color: #6257c8;
}

.photo-edit-modal .modal-dialog {
    max-width: 560px;
}

.photo-edit-modal .modal-title > .photo-upload-heading {
    display: flex;
}

.photo-edit-title {
    display: block;
}

.photo-edit-preview {
    display: flex;
    min-height: 210px;
    max-height: 42vh;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 12px;
    border-radius: 13px;
    background: #f2f5f8;
}

.photo-edit-preview #imgeditsett {
    width: auto;
    max-width: 100% !important;
    height: auto;
    max-height: 38vh !important;
    border-radius: 9px;
    object-fit: contain;
}

.photo-edit-rotate-actions,
.photo-edit-use-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.photo-edit-rotate-actions {
    margin: 10px 0 20px;
}

.photo-edit-rotate-actions .btn,
.photo-edit-use-actions .btn {
    min-height: 44px;
    margin: 0;
    border-radius: 10px;
    font-weight: 750;
}

.photo-edit-rotate-actions .btn {
    border-color: #dce2e8;
    background: #f8fafc;
    color: #465461;
}

.photo-edit-rotate-actions i,
.photo-edit-use-actions i {
    margin-right: 7px;
}

.photo-edit-category {
    margin-bottom: 18px;
}

.photo-edit-modal .modal-footer .btn:last-child {
    grid-column: auto;
}

.content-settings-field label {
    margin-bottom: 7px;
    color: #34404c;
    font-size: .88rem;
    font-weight: 750;
}

.content-settings-field .form-control {
    height: 44px;
    border-color: #d9e0e7;
    border-radius: 10px;
    color: #303a45;
    box-shadow: none;
}

.content-settings-field .form-control:focus {
    border-color: #72afe8;
    box-shadow: 0 0 0 3px rgba(6, 117, 232, .12);
}

.content-settings-modal .modal-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-settings-modal .modal-footer .btn {
    min-width: 0;
    white-space: normal;
}

.content-settings-modal .modal-footer .btn:last-child {
    grid-column: 1 / -1;
    border-color: #dce2e8;
    background: #f4f6f8;
    color: #53606c;
}

@media (max-width: 575.98px) {
    .content-settings-modal .modal-footer {
        gap: 8px;
    }

    .content-settings-modal .modal-footer .btn {
        padding-right: 7px;
        padding-left: 7px;
        font-size: .82rem;
    }

    .photo-edit-preview {
        min-height: 170px;
        max-height: 34vh;
        padding: 8px;
    }

    .photo-edit-preview #imgeditsett {
        max-height: 31vh !important;
    }

    .photo-edit-rotate-actions,
    .photo-edit-use-actions {
        gap: 8px;
    }

    .photo-edit-rotate-actions .btn,
    .photo-edit-use-actions .btn {
        padding-right: 7px;
        padding-left: 7px;
        font-size: .82rem;
    }
}

@media (max-width: 575.98px) {
    .comment-compose-modal .modal-body {
        min-height: 145px;
    }

    .comment-compose-modal #CommentModalTextArea {
        min-height: 112px;
    }

    .photo-upload-modal.image-view-modal .modal-body {
        padding: 10px 10px 14px;
    }

    .image-view-modal .lrgImg {
        max-height: 55vh;
        margin-bottom: 12px;
        border-radius: 9px;
    }
}

@media (max-width: 575.98px) {
    .photo-upload-modal .modal-dialog {
        width: calc(100% - 14px);
        max-height: calc(100vh - 14px);
        margin-top: 7px;
        margin-bottom: 7px;
    }

    .photo-upload-modal .modal-content {
        max-height: calc(100vh - 14px);
        border-radius: 15px;
    }

    .photo-upload-modal .modal-header {
        padding: 15px 16px 13px;
    }

    .photo-upload-heading-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .photo-upload-subtitle {
        font-size: .78rem;
    }

    .photo-upload-modal .modal-body {
        padding: 16px;
    }

    .photo-upload-new-album {
        grid-template-columns: minmax(0, 1fr) 105px;
    }

    .photo-upload-new-album .btn {
        grid-column: 1 / -1;
        min-height: 40px;
    }

    .photo-upload-modal .modal-footer {
        padding: 12px 16px 14px;
    }
}

.feed-composer {
    display: block !important;
    min-height: 0;
    padding: 8px !important;
    border: 1px solid var(--feed-border);
    border-radius: 13px;
    background: var(--feed-surface);
    box-shadow: 0 3px 12px rgba(25, 35, 48, .055);
}

.feed-composer .btn-toolbar {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.feed-composer .btn {
    min-width: 0;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 7px;
    margin-right: 0 !important;
    padding: 7px 9px;
    border: 1px solid #dfe5eb;
    border-radius: 9px;
    background: #f8fafc;
    color: #3d4955;
    font-weight: 700;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.feed-composer .btn:hover,
.feed-composer .btn:focus {
    border-color: #b9d3ea;
    background: #f1f7fd;
    color: #245f92;
    transform: translateY(-1px);
}

.feed-composer-action-icon {
    display: inline-flex;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #e8f3ff;
    color: #1376ca;
    font-size: .82rem;
}

.feed-composer .btn:nth-child(2) .feed-composer-action-icon {
    background: #eaf8ef;
    color: #258552;
}

.feed-composer .btn:nth-child(3) .feed-composer-action-icon {
    background: #f1edff;
    color: #7056c8;
}

.feed-composer-action-label {
    overflow: hidden;
    font-size: .82rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed > .feed-card {
    overflow: hidden;
    margin-bottom: 16px !important;
    border: 1px solid var(--feed-border);
    border-radius: 14px;
    background: var(--feed-surface);
    box-shadow: 0 3px 14px rgba(25, 35, 48, .055);
}

.feed-card .feed-card-header {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px 16px !important;
    border-bottom: 0;
    background: var(--feed-surface);
}

.feed-card .chat-img {
    flex: 0 0 auto;
}

.feed-card .chat-img img,
.feed-card .sImg {
    display: block;
    width: 48px;
    height: 48px;
    max-width: none;
    max-height: none;
    object-fit: cover;
    background: #eef1f4;
}

.feed-author-meta {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    line-height: 1.25;
}

.feed-author-meta .primary-font {
    overflow: hidden;
    font-size: 1rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-author-meta .primary-font a {
    text-decoration: none;
}

.feed-time {
    margin-top: 3px;
    color: var(--feed-muted);
    font-size: .8rem;
    font-weight: 400;
}

.feed-time .fa-clock {
    margin-right: 3px;
    cursor: default;
}

.feed-card-header .RemovePost {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 9px !important;
    border-radius: 8px;
    color: #9199a3;
    font-size: .95rem;
}

.feed-card-header .RemovePost:hover {
    background: #f3f4f6;
    color: #dc3545;
}

.feed-card .feed-card-body {
    min-height: 0;
    padding: 2px 16px 0 !important;
    color: var(--feed-text);
    font-size: 1rem;
    line-height: 1.55;
}

.feed-card .card-text {
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}

.feed-card-body > .container {
    max-width: 100%;
    padding: 0;
}

.feed-card-body > .container > .feed-gallery {
    display: block;
    margin: 0;
    column-width: 110px;
    column-count: auto;
    column-gap: 6px;
}

.feed-card .msgimg {
    display: inline-block;
    width: 100%;
    max-width: 100%;
    margin: 0 0 8px;
    break-inside: avoid;
    vertical-align: top;
}

.feed-gallery:has(> .msgimg:only-child) {
    column-count: 1;
}

.feed-gallery:has(> .msgimg:nth-child(2):last-child) {
    column-count: 2;
}

.feed-card .msgimg > a {
    height: auto !important;
}

.feed-card .msgimg img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: none;
    padding: 0;
    margin-right: auto;
    margin-left: auto;
    border: 0;
    border-radius: 10px;
    object-fit: cover;
    background: #f1f3f5;
}

.feed-gallery:not(:has(> .msgimg:only-child)):not(:has(> .msgimg:nth-child(2):last-child)) .msgimg img {
    width: 100%;
}

.feed-actions {
    gap: 6px;
    margin: 12px 0 0 !important;
    padding: 9px 0 !important;
    border-top: 1px solid #edf0f3;
    font-size: .95rem !important;
}

.feed-actions > .col {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 9px;
    color: #65707c !important;
    font-weight: 600;
    text-align: center !important;
    transition: background-color .15s ease, color .15s ease;
}

.feed-actions > .col:hover,
.feed-actions > .col:focus {
    background: #f1f5f9;
    color: var(--feed-link) !important;
}

.feed-actions .fa-heart,
.feed-actions .fa-comment-dots {
    font-size: 1.08rem;
}

.feed-card .feed-comments {
    display: none;
    padding: 0 !important;
    border-top: 1px solid #e8ecf0;
    background: #f6f8fa;
}

.feed-card .feed-comments:has(.feed-comment) {
    display: block;
}

.feed-comments > div:empty {
    display: none;
}

.feed-comments > div:not(:empty) {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px 12px;
    overflow: hidden;
}

.feed-comments .feed-comment {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px !important;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    background: #fff;
    font-size: .9rem;
}

.feed-comments .feed-comment:first-child {
    margin-top: 0;
}

.feed-comment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.feed-comment-author {
    display: flex;
    align-items: center;
    min-width: 0;
    font-weight: 600;
}

.feed-comment-author a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.feed-comment-time {
    flex: 0 0 auto;
    margin-left: auto;
    color: var(--feed-muted);
    white-space: nowrap;
}

.feed-comment-text {
    display: block;
    width: auto;
    margin-top: 4px;
    padding-left: 35px;
    color: #343a42;
    line-height: 1.45;
}

.feed-comment-text p {
    margin: 0;
    text-align: left !important;
}

.feed-comments .cImg {
    width: 28px;
    height: 28px;
    margin-right: 7px;
    object-fit: cover;
}

/* Single-video detail ---------------------------------------------------- */
.video-detail-page {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 0 12px 110px;
}

.video-detail-header {
    margin-bottom: 14px;
}

.video-detail-title {
    min-width: 0;
}

.video-detail-title b {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-detail-meta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.video-detail-view-count {
    display: inline-flex;
    min-height: 32px;
    margin: 0;
    padding: 6px 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #cfe5f3;
    border-radius: 999px;
    background: #eaf5fc;
    color: #176da3;
    font-size: .83rem;
    font-weight: 700;
}

.video-detail-card {
    overflow: hidden;
    border: 1px solid #dfe7ed;
    border-radius: 16px;
    background: #0d1117;
    box-shadow: 0 12px 32px rgba(14, 25, 38, .18);
}

.video-detail-player {
    display: flex;
    width: 100%;
    min-height: 240px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #080b0f;
}

.video-detail-player > video,
.video-detail-player .mejs-container,
.video-detail-player .mejs-mediaelement,
.video-detail-player .mejs-mediaelement video {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.video-detail-player > video,
.video-detail-player .mejs-mediaelement video {
    height: auto !important;
    max-height: 72vh;
    object-fit: contain;
}

.video-detail-player .mejs-container {
    min-width: 0;
    background: #080b0f;
}

.video-detail-comments {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid #e1e9f0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(28, 62, 91, .08);
}

.video-detail-section-heading {
    display: flex;
    padding: 13px 16px;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e8eef3;
    background: linear-gradient(135deg, #fff 0%, #f4f9fd 100%);
}

.video-detail-section-heading > span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eaf4fb;
    color: #176da3;
}

.video-detail-section-heading strong,
.video-detail-section-heading small {
    display: block;
}

.video-detail-section-heading strong {
    color: #24384a;
}

.video-detail-section-heading small {
    margin-top: 1px;
    color: #718392;
}

.video-detail-comments .media-comments {
    max-width: none;
    margin: 0;
    padding: 12px;
}

.video-detail-comments .media-comments-list {
    border: 0;
    background: #f6f8fa;
}

/* Photo and video comments share the feed comment language. */
.media-comments {
    max-width: 760px;
    margin: 18px auto 0;
    padding-right: 0;
    padding-left: 0;
    text-align: left !important;
}

.media-comments-list {
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px 12px;
    overflow: hidden;
    border: 1px solid #e4e8ed;
    border-radius: 12px;
    background: #f6f8fa;
}

.media-comments-list:empty {
    display: none;
}

.media-comments-list .media-comment {
    box-sizing: border-box;
    width: 100%;
    margin-top: 4px;
    padding: 8px 10px !important;
    border: 1px solid #e4e8ed;
    border-radius: 8px;
    background: #fff;
    font-size: .9rem;
    text-align: left;
}

.media-comments-list .media-comment:first-child {
    margin-top: 0;
}

.media-comments-list .feed-comment-head,
.media-comments-list .feed-comment-text {
    margin-right: 0;
    margin-left: 0;
}

.media-comments-list .feed-comment-author .cImg {
    width: 28px;
    height: 28px;
    margin-right: 7px;
    object-fit: cover;
}

.media-comments-list .RemoveComment {
    margin-left: 8px;
    padding: 5px;
    border-radius: 50%;
    color: #a94a4a;
    transition: background-color .18s ease, color .18s ease;
}

.media-comments-list .RemoveComment:hover,
.media-comments-list .RemoveComment:focus {
    background: #fbe9e9;
    color: #8d2020;
}

.media-comment-actions {
    display: flex;
    width: 100%;
    padding: 10px 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.media-comment-actions > div {
    float: none !important;
    padding: 0 !important;
}

.media-comment-actions .btn {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 13px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 9px;
    font-weight: 600;
}

.media-comment-actions .SharePhoto {
    border-color: #dfe5eb;
    background: #fff;
    color: #536778;
}

.media-comment-actions .SharePhoto:hover,
.media-comment-actions .SharePhoto:focus {
    border-color: #cbd7e0;
    background: #f4f7f9;
    color: #24384a;
}

@media (max-width: 575.98px) {
    body {
        background: #f1f3f6;
    }

    .feed-composer {
        margin-right: 2px;
        margin-left: 2px;
        padding: 7px !important;
        border: 1px solid #e0e5ea;
        border-radius: 12px;
        box-shadow: 0 2px 9px rgba(25, 35, 48, .05);
    }

    .feed-composer .btn-toolbar {
        gap: 5px;
    }

    .feed-composer .btn {
        min-height: 40px;
        gap: 5px;
        padding: 6px 4px;
    }

    .feed-composer-action-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        border-radius: 7px;
        font-size: .76rem;
    }

    .feed-composer-action-label {
        font-size: .76rem;
    }

    .feed > .feed-card {
        margin-right: 2px;
        margin-bottom: 12px !important;
        margin-left: 2px;
        border: 1px solid #dfe4e9;
        border-radius: 12px;
        box-shadow: 0 3px 12px rgba(25, 35, 48, .06);
    }

    .feed-card .feed-card-header {
        padding: 12px !important;
    }

    .feed-card .chat-img img,
    .feed-card .sImg {
        width: 44px;
        height: 44px;
        color: transparent;
        font-size: 0;
    }

    .feed-card .feed-card-body {
        padding: 2px 12px 0 !important;
    }

    .feed-card-body > .container > .feed-gallery {
        column-width: 90px;
        column-count: auto;
        column-gap: 5px;
    }

    .feed-gallery:has(> .msgimg:only-child) {
        column-count: 1;
    }

    .feed-card .msgimg {
        margin-bottom: 6px;
    }

    .feed-comments > div:not(:empty) {
        padding: 5px 10px 7px;
    }

    .feed-card .feed-comments {
        border-top: 1px solid #e5e9ed;
        background: #f5f7f9;
    }

    .feed-comments .feed-comment {
        margin: 0;
        padding: 9px 2px !important;
        border: 0;
        border-bottom: 1px solid #e1e6eb;
        border-radius: 0;
        background: transparent;
    }

    .feed-comments .feed-comment:last-child {
        border-bottom: 0;
    }

    .media-comments {
        margin-top: 12px;
    }

    .video-detail-page {
        width: 100%;
        padding: 0 8px 82px;
    }

    .video-detail-header {
        min-height: 58px;
        margin-bottom: 10px;
        padding: 10px 12px;
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }

    .video-detail-title {
        flex: 1 1 auto;
        width: auto;
    }

    .video-detail-title b {
        font-size: .96rem;
    }

    .video-detail-title .members-media-header-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }

    .video-detail-meta {
        width: auto;
    }

    .video-detail-view-count {
        min-height: 30px;
        padding: 5px 8px;
        font-size: .76rem;
    }

    .video-detail-card {
        border-radius: 12px;
        box-shadow: 0 7px 22px rgba(14, 25, 38, .16);
    }

    .video-detail-player {
        min-height: 180px;
    }

    .video-detail-player > video,
    .video-detail-player .mejs-mediaelement video {
        max-height: 65vh;
    }

    .video-detail-comments {
        margin-top: 12px;
        border-radius: 12px;
    }

    .video-detail-section-heading {
        padding: 11px 12px;
    }

    .video-detail-comments .media-comments {
        margin-top: 0;
        padding: 0;
    }

    .video-detail-comments .media-comments-list {
        border-radius: 0;
    }

    .media-comments-list {
        padding: 5px 10px 7px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        background: #f5f7f9;
    }

    .media-comments-list .media-comment {
        margin: 0;
        padding: 9px 2px !important;
        border: 0;
        border-bottom: 1px solid #e1e6eb;
        border-radius: 0;
        background: transparent;
    }

    .media-comments-list .media-comment:last-child {
        border-bottom: 0;
    }

    .media-comment-actions {
        padding: 9px 10px;
    }

    .media-comment-actions > div,
    .media-comment-actions .btn {
        flex: 1 1 auto;
    }

    .feed-comment-time {
        font-size: .76rem;
    }

    .feed-comment-text {
        margin-top: 3px;
        padding-left: 35px;
        font-size: .88rem;
        line-height: 1.4;
    }

    .feed-actions {
        margin-top: 8px !important;
        padding: 6px 0 !important;
        border-radius: 9px;
        background: #f8fafc;
    }

    .feed-actions > .col {
        padding: 7px 6px;
        font-size: .88rem;
    }
}

/* Modern profile header */
.profile-hero {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--feed-border);
    border-radius: 16px;
    background: var(--feed-surface);
    box-shadow: 0 7px 24px rgba(25, 35, 48, .09);
}

.profile-hero.is-supporter {
    border-color: #dfbd56;
    box-shadow: 0 7px 26px rgba(151, 109, 0, .14);
}

.profile-hardcore-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid #e4c45e;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(29, 18, 39, .94), rgba(101, 42, 128, .94));
    color: #f7dc7a;
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .1em;
    text-transform: uppercase;
    box-shadow: 0 5px 16px rgba(30, 12, 40, .3);
    backdrop-filter: blur(5px);
}

.profile-hardcore-ribbon .fa-crown {
    color: #f4cc51;
}

.profile-hero-cover {
    position: relative;
    height: 190px;
    background-color: #d9dee5;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.profile-hero-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, rgba(10, 17, 28, .06) 38%, rgba(10, 17, 28, .36) 100%);
}

.profile-hero-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
    max-width: calc(100% - 24px);
}

.profile-hero-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 7px 11px;
    border: 0;
    border-radius: 9px;
    font-size: .82rem;
    font-weight: 700;
    box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
}

.profile-hero-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 18px;
    padding: 0 18px 16px;
}

.profile-identity {
    display: flex;
    align-items: flex-start;
    min-width: 0;
}

.profile-avatar-wrap {
    position: relative;
    z-index: 2;
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    margin-top: -62px;
}

.profile-hero.is-hardcore .profile-avatar-wrap::after {
    position: absolute;
    inset: -5px;
    z-index: 1;
    border: 3px solid #e1bc4e;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5d66f, #783d99) border-box;
    box-shadow: 0 0 0 3px rgba(111, 52, 143, .24), 0 7px 22px rgba(116, 61, 139, .24);
    content: "";
    pointer-events: none;
}

.profile-avatar {
    position: relative;
    z-index: 2;
    display: block;
    width: 132px;
    height: 132px;
    border: 5px solid #fff !important;
    border-radius: 50%;
    background: #eef1f4;
    box-shadow: 0 5px 18px rgba(18, 26, 36, .22);
    object-fit: cover;
}

.profile-avatar-hat {
    position: absolute;
    top: -48px;
    left: -45px;
    z-index: 3;
    width: 145px;
    height: 145px;
    border: 0 !important;
    pointer-events: none;
}

.profile-identity-copy {
    min-width: 0;
    padding: 17px 0 0 15px;
}

.profile-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.profile-name-line h1 {
    overflow: hidden;
    margin: 0;
    color: #20242a;
    font-size: 1.55rem;
    font-weight: 750;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    white-space: nowrap;
}

.profile-badge-verified {
    background: #e8f8ee;
    color: #12813a;
}

.profile-badge-moderator {
    padding: 2px 6px;
    border: 1px solid #8d3d52;
    background: #a64d63;
    color: #fff;
    font-size: .62rem;
    letter-spacing: .06em;
}

.profile-badge-supporter {
    border: 1px solid #e2bd47;
    background: linear-gradient(135deg, #fff8d8, #f6dd82);
    color: #735400 !important;
    text-decoration: none !important;
    box-shadow: 0 2px 7px rgba(151, 109, 0, .13);
}

.profile-badge-supporter:hover,
.profile-badge-supporter:focus {
    border-color: #c99d1e;
    background: linear-gradient(135deg, #fff4bd, #f1cf59);
    color: #503a00 !important;
}

.profile-badge-supporter .fa-star {
    color: #d99d00;
}

.profile-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 7px;
    color: var(--feed-muted);
    font-size: .9rem;
}

.profile-presence {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.profile-presence i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.profile-presence.is-online {
    color: #16833d;
}

.profile-presence.is-online i {
    background: #22b955;
    box-shadow: 0 0 0 3px rgba(34, 185, 85, .14);
}

.profile-presence.is-offline {
    color: #7c858f;
}

.profile-presence.is-offline i {
    background: #aab1b9;
}

.profile-score {
    position: relative;
    z-index: 3;
    display: flex;
    min-height: 142px;
    margin-top: -48px;
    padding: 15px 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 15px;
    background: linear-gradient(145deg, #0b7cf1, #075ebc);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 24px rgba(6, 96, 190, .28);
}

.profile-hero.is-hardcore .profile-score {
    border: 2px solid #e4c354;
    box-shadow: 0 0 0 3px rgba(120, 61, 153, .13), 0 12px 27px rgba(6, 96, 190, .3);
}

.profile-score-label {
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.profile-score-value {
    display: flex;
    align-items: baseline;
    justify-content: center;
    margin: 2px 0;
    line-height: 1;
}

.profile-score-value strong {
    font-size: 3.15rem;
    font-weight: 800;
}

.profile-score-value span {
    margin-left: 4px;
    color: rgba(255, 255, 255, .78);
    font-size: .9rem;
    font-weight: 700;
}

.profile-score a {
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.profile-rate-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 0 18px 13px;
    color: var(--feed-muted);
    font-size: .82rem;
    font-weight: 700;
}

.profile-rate-row .profile-rating {
    width: auto;
    margin: 0;
    color: #f1ad00;
    font-size: 2rem;
    line-height: .8;
}

.profile-summary {
    display: block;
    margin: 0 18px 14px;
    padding: 12px 14px;
    border: 1px solid #e8ecf0;
    border-radius: 11px;
    background: #f8fafb;
}

.profile-bio {
    min-width: 0;
    color: #3f4750;
    font-size: .95rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-summary-links {
    display: block;
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #e5e9ed;
    font-size: .78rem;
}

.profile-summary-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    text-decoration: none;
}

.profile-summary-links a span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin: 0 18px 14px;
    overflow: hidden;
    border: 1px solid #e6eaee;
    border-radius: 11px;
    background: #e6eaee;
}

.profile-facts.profile-facts-guest {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-fact {
    display: flex;
    min-width: 0;
    padding: 10px 8px;
    flex-direction: column;
    background: #fff;
    text-align: center;
}

.profile-fact span {
    color: var(--feed-muted);
    font-size: .7rem;
    font-weight: 650;
    text-transform: uppercase;
}

.profile-fact strong {
    overflow: hidden;
    margin-top: 4px;
    color: #30363d;
    font-size: .88rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #e6eaee;
    background: #fbfcfd;
}

.profile-stats .btnProfTabs {
    display: flex;
    min-width: 0;
    padding: 12px 5px;
    flex-direction: column;
    align-items: center;
    border: 0;
    border-right: 1px solid #e6eaee;
    background: transparent;
    color: #343b43;
    cursor: pointer;
}

.profile-stats .btnProfTabs:last-child {
    border-right: 0;
}

.profile-stats .btnProfTabs:hover,
.profile-stats .btnProfTabs:focus {
    background: #edf5fd;
    color: var(--feed-link);
    outline: 0;
}

.profile-stats .btnProfTabs strong {
    font-size: 1.08rem;
}

.profile-stats .btnProfTabs span {
    margin-top: 2px;
    color: var(--feed-muted);
    font-size: .76rem;
    font-weight: 600;
}

.profile-stats.profile-stats-readonly {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.profile-stats .profile-stat {
    display: flex;
    min-width: 0;
    padding: 12px 5px;
    flex-direction: column;
    align-items: center;
    border-right: 1px solid #e6eaee;
    color: #343b43;
}

.profile-stats .profile-stat:last-child { border-right: 0; }
.profile-stats .profile-stat strong { font-size: 1.08rem; }
.profile-stats .profile-stat span {
    margin-top: 2px;
    color: var(--feed-muted);
    font-size: .76rem;
    font-weight: 600;
}

.profile-guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    border-top: 1px solid #e6eaee;
    background: #f5f9fe;
    color: #46515d;
    font-size: .84rem;
}

.profile-guest-cta-actions { display: flex; gap: 7px; flex: 0 0 auto; }
.profile-privacy-message { display: inline-flex; align-items: center; gap: 8px; color: #34485c; }
.profile-privacy-message .fa-lock { color: #0675e8; }

@media (max-width: 575.98px) {
    .profile-facts.profile-facts-guest,
    .profile-stats.profile-stats-readonly { grid-template-columns: repeat(5, minmax(68px, 1fr)); overflow-x: auto; }
    .profile-guest-cta { align-items: flex-start; flex-direction: column; }
}

.profile-posts-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 10px 12px;
    border-top: 1px solid #e6eaee;
    background: #fff;
    color: var(--feed-link);
    font-size: .78rem;
    font-weight: 700;
}

.profile-posts-link:hover,
.profile-posts-link:focus {
    background: #edf5fd;
    color: var(--feed-link);
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .profile-hero-cover {
        height: 170px;
    }

    .profile-hero-main {
        grid-template-columns: minmax(0, 1fr) 165px;
        gap: 12px;
        padding-right: 12px;
        padding-left: 12px;
    }

    .profile-avatar-wrap {
        flex-basis: 108px;
        width: 108px;
        height: 108px;
        margin-top: -50px;
    }

    .profile-avatar {
        width: 108px;
        height: 108px;
        border-width: 4px !important;
    }

    .profile-identity-copy {
        padding-top: 13px;
        padding-left: 11px;
    }

    .profile-name-line h1 {
        max-width: 230px;
        font-size: 1.3rem;
    }

    .profile-score {
        min-height: 126px;
        margin-top: -42px;
    }

    .profile-score-value strong {
        font-size: 2.65rem;
    }

    .profile-summary,
    .profile-facts {
        margin-right: 12px;
        margin-left: 12px;
    }
}

@media (max-width: 575.98px) {
    .profile-hero {
        margin-right: -15px;
        margin-left: -15px;
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .profile-hero-cover {
        height: 150px;
    }

    .profile-hero-actions {
        top: 8px;
        right: 8px;
        gap: 5px;
        max-width: calc(100% - 16px);
    }

    .profile-hardcore-ribbon {
        top: 8px;
        left: 8px;
        padding: 6px 9px;
        font-size: .64rem;
    }

    .profile-hero.is-hardcore .profile-hero-actions {
        top: 43px;
    }

    .profile-hero-actions .btn {
        padding: 6px 8px;
        font-size: .74rem;
    }

    .profile-hero-main {
        display: block;
        padding: 0 12px 12px;
    }

    .profile-avatar-wrap {
        flex-basis: 94px;
        width: 94px;
        height: 94px;
        margin-top: -43px;
    }

    .profile-avatar {
        width: 94px;
        height: 94px;
    }

    .profile-avatar-hat {
        top: -37px;
        left: -36px;
        width: 112px;
        height: 112px;
    }

    .profile-identity-copy {
        padding-top: 12px;
        padding-left: 10px;
    }

    .profile-name-line {
        display: block;
    }

    .profile-name-line h1 {
        max-width: calc(100vw - 140px);
        font-size: 1.2rem;
    }

    .profile-badge {
        margin-top: 5px;
    }

    .profile-meta-line {
        display: block;
        margin-top: 5px;
        font-size: .78rem;
    }

    .profile-presence {
        margin-top: 5px;
    }

    .profile-score {
        min-height: 108px;
        margin: 12px 0 0;
        padding: 10px;
        border-radius: 12px;
    }

    .profile-score-value strong {
        font-size: 2.5rem;
    }

    .profile-rate-row {
        justify-content: center;
        padding: 0 12px 12px;
    }

    .profile-summary {
        display: block;
        margin: 0 12px 12px;
        padding: 10px 11px;
    }

    .profile-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0 12px 12px;
    }

    .profile-stats {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .profile-stats .btnProfTabs {
        min-width: 0;
        padding-right: 3px;
        padding-left: 3px;
    }
}
