/* NEOLIF PROFILE V2 — CANDIDATE ONLY */

.neolif-profile-v2 {
    --neolif-blue: #0B4F9F;
    --neolif-border: #e8edf3;
    --neolif-radius: 16px;
}

.neolif-profile-v2 .neolif-profile-cover {
    width: 100%;
    min-height: 240px;
    border-radius: 18px;
    background: linear-gradient(125deg,#083F80,#0B4F9F 65%,#438cdb);
}

.neolif-profile-v2 .neolif-profile-avatar img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
}

.neolif-profile-v2 .neolif-profile-listings {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .neolif-profile-v2 .neolif-profile-avatar img {
        width: 100px;
        height: 100px;
    }

    .neolif-profile-v2 .neolif-profile-listings {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media (max-width: 767px) {
    .neolif-profile-v2 .neolif-profile-cover {
        min-height: 150px;
        border-radius: 12px;
    }

    .neolif-profile-v2 .neolif-profile-avatar img {
        width: 80px;
        height: 80px;
    }

    .neolif-profile-v2 .neolif-profile-listings {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px;
    }
}

/* PROFILE HEADER V2 */
.neolif-profile-v2 .agent-profile-wrap {
    position: relative;
    margin-top: -64px;
    padding: 0 24px 24px;
}

.neolif-profile-v2 .neolif-profile-avatar {
    position: relative;
    z-index: 2;
}

.neolif-profile-v2 .neolif-profile-avatar img {
    display: block;
    width: 120px;
    height: 120px;
    max-width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .neolif-profile-v2 .agent-profile-wrap {
        margin-top: -48px;
        padding: 0 12px 20px;
    }

    .neolif-profile-v2 .neolif-profile-avatar img {
        width: 96px;
        height: 96px;
    }
}

/* Profile V2: full-width listings and retained contact section */
.neolif-profile-v2 .neolif-profile-listings > .item-listing-wrap {
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
}

.neolif-profile-v2 .neolif-profile-contact-section {
    margin-top: 28px;
}

.neolif-profile-v2 .neolif-profile-contact-section .sidebar-wrap {
    width: 100%;
}

/* Grid compatibility */
.neolif-profile-v2 .neolif-profile-listings {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.neolif-profile-v2 .neolif-profile-listings > .item-listing-wrap {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
}

@media (min-width: 768px) and (max-width: 1199px) {
    .neolif-profile-v2 .neolif-profile-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .neolif-profile-v2 .neolif-profile-listings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

/* ===== NEOLIF PUBLIC PROFILE HEADER V3 ===== */

/* Profile card overlaps cover */
.neolif-profile-v2 .agent-profile-wrap {
    position: relative;
    margin: -54px 18px 24px;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 18px;
    box-shadow: 0 6px 24px rgba(15, 40, 75, .06);
}

/* Compact header layout */
.neolif-profile-v2 .agent-profile-wrap > .row {
    display: flex;
    align-items: center;
    gap: 20px;
}

.neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-4 {
    flex: 0 0 128px;
    width: 128px;
    max-width: 128px;
}

.neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-8 {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
}

/* Circular avatar */
.neolif-profile-v2 .neolif-profile-avatar {
    width: 120px;
    height: 120px;
    overflow: hidden;
    border-radius: 50%;
    background: #fff;
}

.neolif-profile-v2 .neolif-profile-avatar img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50% !important;
}

/* Name and details */
.neolif-profile-v2 .agent-profile-header h1 {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.neolif-profile-v2 .agent-profile-top-wrap {
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
}

.neolif-profile-v2 .agent-profile-content {
    margin-bottom: 12px;
}

/* Contact buttons */
.neolif-profile-v2 .agent-profile-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.neolif-profile-v2 .agent-profile-buttons .btn {
    min-width: 120px;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 600;
}

.neolif-profile-v2 .agent-profile-buttons .btn-secondary {
    background: #0B4F9F;
    border-color: #0B4F9F;
    color: #fff;
}

.neolif-profile-v2 .agent-profile-buttons .btn-call {
    background: #fff;
    border: 1px solid #0B4F9F;
    color: #0B4F9F;
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1199px) {
    .neolif-profile-v2 .agent-profile-wrap {
        margin: -46px 14px 22px;
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .neolif-profile-v2 .agent-profile-wrap {
        margin: -40px 10px 20px;
        padding: 16px;
        border-radius: 14px;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row {
        align-items: flex-start;
        gap: 12px;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-4 {
        flex: 0 0 76px;
        width: 76px;
        max-width: 76px;
        padding: 0;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-8 {
        flex: 1 1 0;
        width: auto;
        max-width: none;
        min-width: 0;
        padding: 0;
    }

    .neolif-profile-v2 .neolif-profile-avatar {
        width: 76px;
        height: 76px;
    }

    .neolif-profile-v2 .agent-profile-header h1 {
        font-size: 18px;
        overflow-wrap: anywhere;
    }

    .neolif-profile-v2 .agent-profile-buttons .btn {
        min-width: 0;
        flex: 1 1 auto;
        padding: 9px 12px;
    }
}

.neolif-explore-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.neolif-explore-item { min-width: 0; }
.neolif-explore-item a {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 0;
    background: #eef3f9;
    text-decoration: none;
    color: #fff;
}
.neolif-explore-item img,
.neolif-explore-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.neolif-explore-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0B4F9F;
    font-weight: 700;
}
.neolif-explore-overlay {
    position: absolute;
    inset: auto 0 0;
    width: 100%;
    padding: 40px 10px 10px;
    color: #fff;
    background: linear-gradient(
        transparent,
        rgba(0, 0, 0, .86)
    );
}
.neolif-explore-price {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}
.neolif-explore-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 4px;
}
.neolif-explore-location {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 3px;
}
.neolif-explore-price,
.neolif-explore-title,
.neolif-explore-location {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ===== NEOLIF PUBLIC PROFILE V4 ===== */
.neolif-profile-v2 .neolif-profile-cover,
.neolif-profile-v2 .neolif-profile-contact-section {
    display: none !important;
}

.neolif-profile-v2 .agent-profile-wrap {
    margin: 16px 0 24px;
}

.neolif-profile-v2 .neolif-profile-explore-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
}

.neolif-profile-v2 .neolif-profile-explore-pagination {
    margin-top: 30px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .neolif-profile-v2 .neolif-profile-explore-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .neolif-profile-v2 .neolif-profile-explore-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
    }
}

/* Profile V4.1 — Explore responsive parity */
@media (min-width: 768px) and (max-width: 1024px) {
    .neolif-profile-v2 .neolif-explore-grid {
        margin-inline: -16px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
    }
    .neolif-profile-v2 .neolif-explore-item a {
        border-radius: 0;
    }
}
@media (max-width: 767px) {
    
    .neolif-profile-v2 .neolif-explore-grid {
        margin-inline: -3px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
    }
    .neolif-profile-v2 .neolif-explore-item a {
        border-radius: 0;
    }
    .neolif-profile-v2 .neolif-explore-overlay {
        padding: 22px 4px 5px;
    }
    .neolif-profile-v2 .neolif-explore-price {
        font-size: 10px;
    }
    .neolif-profile-v2 .neolif-explore-title {
        font-size: 9px;
        margin-top: 2px;
    }
    .neolif-profile-v2 .neolif-explore-location {
        font-size: 8px;
        margin-top: 2px;
    }
}


/* NEOLIF Profile V4.3 — Full-bleed listing grid only */
@media (max-width: 1024px) {
    .neolif-profile-v2 .neolif-profile-explore-grid {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1px;
    }
}

/* NEOLIF Profile V5.1 — Instagram white layout */
/* Mobile and Tablet only; preserve V4.3 listing grid */
@media (max-width: 1024px) {
    .neolif-profile-v2 {
        background: #fff !important;
    }

    .neolif-profile-v2 .agent-profile-wrap {
        margin: 0 0 12px !important;
        padding: 20px 12px 12px !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .neolif-profile-v2 .agent-bio-wrap {
        margin: 0 !important;
        padding: 12px 0 !important;
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .neolif-profile-v2 .agent-nav-wrap {
        background: #fff !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .neolif-profile-v2 .agent-nav-wrap .nav-link {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        color: #64748b !important;
    }

    .neolif-profile-v2 .agent-nav-wrap .nav-link.active {
        color: #0B4F9F !important;
        border-bottom: 2px solid #0B4F9F !important;
    }

    .neolif-profile-v2 .agent-profile-buttons .btn {
        border-radius: 8px !important;
        box-shadow: none !important;
    }
}


/* ===== NEOLIF PROFILE V6 ===== */
/* Profile UI only. Preserve existing Explore grid rules. */

.neolif-profile-v2 .agent-profile-wrap {
    margin: 0 0 20px;
    padding: 24px 16px 18px;
    background: #fff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.neolif-profile-v2 .agent-profile-wrap > .row {
    align-items: flex-start;
    gap: 18px;
}

.neolif-profile-v2 .agent-profile-top-wrap {
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
}

.neolif-profile-v2 .agent-profile-header h1 {
    margin: 0 0 6px;
    color: #111827;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}

.neolif-profile-v2 .agent-list-position,
.neolif-profile-v2 .agent-profile-content,
.neolif-profile-v2 .agent-profile-header .rating,
.neolif-profile-v2 .agent-profile-header .rating-wrap {
    display: none !important;
}

.neolif-profile-v2 .neolif-profile-avatar {
    border-radius: 50%;
    overflow: hidden;
}

.neolif-profile-v2 .neolif-profile-avatar img {
    border: 0;
    border-radius: 50%;
    object-fit: cover;
}

/* Bio */

.neolif-profile-v2 .neolif-v6-bio {
    margin: 10px 0 14px;
    padding: 0;
    border: 0;
}

.neolif-profile-v2 .neolif-v6-bio-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    color: #374151;
    font-size: 13px;
    line-height: 1.55;
}

.neolif-profile-v2 .neolif-v6-bio-expanded .neolif-v6-bio-text {
    display: block;
    overflow: visible;
}

.neolif-profile-v2 .neolif-v6-bio-text p {
    margin: 0 0 4px;
}

.neolif-profile-v2 .neolif-v6-bio-toggle {
    display: inline-block;
    margin-top: 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
}

.neolif-profile-v2 .neolif-v6-bio-toggle[hidden] {
    display: none !important;
}

/* Contact actions */

.neolif-profile-v2 .neolif-v6-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line {
    flex: 1 1 0;
    min-width: 0;
    padding: 9px 8px;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    box-shadow: none;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call {
    border: 1px solid #0B4F9F;
    color: #0B4F9F;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line {
    border: 1px solid #16a34a;
    color: #15803d;
}

.neolif-profile-v2 .neolif-v6-more {
    position: relative;
    flex: 0 0 40px;
}

.neolif-profile-v2 .neolif-v6-more-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px !important;
    height: 38px;
    padding: 0 !important;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    font-size: 20px;
    cursor: pointer;
    list-style: none;
}

.neolif-profile-v2 .neolif-v6-more-trigger::-webkit-details-marker {
    display: none;
}

.neolif-profile-v2 .neolif-v6-more-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 5px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
}

.neolif-profile-v2 .neolif-v6-more-menu a,
.neolif-profile-v2 .neolif-v6-more-menu button {
    display: block;
    width: 100%;
    padding: 10px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #111827;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

/* Tabs */

.neolif-profile-v2 .neolif-v6-tabs {
    margin: 12px 0 0;
    border-bottom: 1px solid #e5e7eb;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link {
    padding: 12px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    background: transparent !important;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link.active {
    border-bottom-color: #0B4F9F;
    background: transparent !important;
    color: #0B4F9F;
    font-weight: 700;
}

.neolif-profile-v2 .neolif-v6-favorites-link,
.neolif-profile-v2 .neolif-v6-favorites-empty {
    padding: 24px 16px;
    color: #6b7280;
    font-size: 14px;
}

/* Mobile profile header only */

@media (max-width: 767px) {
    .neolif-profile-v2 .agent-profile-wrap {
        margin: 0;
        padding: 16px 12px 18px;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row {
        gap: 12px;
    }

    .neolif-profile-v2 .neolif-profile-avatar {
        width: 76px;
        height: 76px;
    }

    .neolif-profile-v2 .agent-profile-header h1 {
        font-size: 17px;
    }

    .neolif-profile-v2 .neolif-v6-bio {
        margin-top: 8px;
    }
}


/* ===== NEOLIF PROFILE V6 MOBILE LAYOUT ===== */

.neolif-profile-v2 .neolif-v6-listing-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-top: 6px;
    color: #374151;
    font-size: 13px;
}

.neolif-profile-v2 .neolif-v6-listing-count strong {
    color: #111827;
    font-weight: 700;
}

@media (max-width: 767px) {
    .neolif-profile-v2 .agent-profile-wrap > .row {
        display: grid;
        grid-template-columns: 76px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 0;
        margin: 0;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-4 {
        grid-column: 1;
        grid-row: 1;
        width: 76px;
        max-width: 76px;
        padding: 0;
    }

    .neolif-profile-v2 .agent-profile-wrap > .row > .col-lg-8 {
        display: contents;
    }

    .neolif-profile-v2 .agent-profile-top-wrap {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        min-width: 0;
    }

    .neolif-profile-v2 .neolif-v6-bio,
    .neolif-profile-v2 .neolif-v6-actions {
        grid-column: 1 / -1;
        width: 100%;
    }

    .neolif-profile-v2 .neolif-v6-bio {
        margin-top: 14px;
    }
}


/* ===== NEOLIF PROFILE V6 GRID CLEANUP ===== */

@media (max-width: 767px) {
    .neolif-profile-v2 .agent-profile-wrap .agent-profile-content {
        display: none !important;
    }

    .neolif-profile-v2 .agent-profile-wrap .agent-list-position {
        display: none !important;
    }
}


/* ===== NEOLIF PROFILE V6 — INSTAGRAM UI ===== */
/* Scoped to author profile. Preserve property grid and infinite scroll. */

.neolif-profile-v2 .agent-profile-header .rating,
.neolif-profile-v2 .agent-profile-header .rating-wrap,
.neolif-profile-v2 .agent-profile-header .agent-rating,
.neolif-profile-v2 .agent-profile-header a[href*="review"] {
    display: none !important;
}

/* Instagram-inspired action buttons */
.neolif-profile-v2 .neolif-v6-actions {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 8px !important;
    margin: 0 !important;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line,
.neolif-profile-v2 .neolif-v6-more-trigger {
    background: #efefef !important;
    color: #111 !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    font-weight: 600 !important;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 10px 8px !important;
    text-align: center !important;
}

.neolif-profile-v2 .neolif-v6-more {
    flex: 0 0 42px !important;
}

.neolif-profile-v2 .neolif-v6-more-trigger {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    list-style: none !important;
}

.neolif-profile-v2 .neolif-v6-more-trigger::marker {
    content: "" !important;
}

.neolif-profile-v2 .neolif-v6-more-trigger::-webkit-details-marker {
    display: none !important;
}

/* Instagram-inspired tabs */
.neolif-profile-v2 .neolif-v6-tabs {
    margin: 14px 0 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 1px solid #dbdbdb !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav {
    display: flex !important;
    flex-wrap: nowrap !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    min-height: 48px !important;
    padding: 12px 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;
    color: #737373 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link.active {
    background: transparent !important;
    border-bottom: 2px solid #111 !important;
    color: #111 !important;
}

/* Hide Houzez listing controls, not the listing query or grid */
.neolif-profile-v2 #tab-properties > .listing-tools-wrap {
    display: none !important;
}

/* Reduce empty space before listing grid */
.neolif-profile-v2 .agent-profile-wrap {
    margin-bottom: 0 !important;
}

.neolif-profile-v2 .neolif-v6-tabs + .tab-content {
    margin-top: 0 !important;
}

.neolif-profile-v2 #tab-properties {
    padding-top: 0 !important;
}



/* ===== NEOLIF PROFILE V7 — COMPACT BUTTONS AND PRESS FEEDBACK ===== */

.neolif-profile-v2 .neolif-v6-actions {
    align-items: center !important;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line,
.neolif-profile-v2 .neolif-v6-more-trigger {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 8px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 120ms ease, background-color 120ms ease !important;
    transform-origin: center;
    touch-action: manipulation;
}

.neolif-profile-v2 .neolif-v6-more {
    flex-basis: 42px !important;
}

.neolif-profile-v2 .neolif-v6-more-trigger {
    width: 42px !important;
    min-width: 42px !important;
}

.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call:active,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line:active,
.neolif-profile-v2 .neolif-v6-more-trigger:active,
.neolif-profile-v2 .neolif-v6-more-menu a:active,
.neolif-profile-v2 .neolif-v6-more-menu button:active,
.neolif-profile-v2 .neolif-v6-tabs .nav-link:active,
.neolif-profile-v2 .neolif-v6-bio-toggle:active {
    transform: scale(0.97) !important;
    background-color: #dedede !important;
}

.neolif-profile-v2 .neolif-v6-more-menu a,
.neolif-profile-v2 .neolif-v6-more-menu button,
.neolif-profile-v2 .neolif-v6-tabs .nav-link,
.neolif-profile-v2 .neolif-v6-bio-toggle {
    transition: transform 120ms ease, background-color 120ms ease !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link {
    gap: 7px !important;
    color: #737373 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link.active {
    color: #111111 !important;
    font-weight: 700 !important;
    border-bottom-color: #111111 !important;
}

.neolif-profile-v2 .neolif-v7-tab-icon {
    font-size: 19px;
    line-height: 1;
    font-weight: 500;
}

@media (prefers-reduced-motion: reduce) {
    .neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
    .neolif-profile-v2 .neolif-v6-actions .neolif-v6-line,
    .neolif-profile-v2 .neolif-v6-more-trigger,
    .neolif-profile-v2 .neolif-v6-more-menu a,
    .neolif-profile-v2 .neolif-v6-more-menu button,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link,
    .neolif-profile-v2 .neolif-v6-bio-toggle {
        transition: none !important;
    }
}


/* NEOLIF Profile V7 — Favorites Load More */
.neolif-profile-v2 .neolif-v7-favorites-load-wrap {
    display: flex;
    justify-content: center;
    padding: 20px 12px 28px;
}

.neolif-profile-v2 .neolif-v7-favorites-load {
    min-height: 36px;
    padding: 8px 18px;
    border: 0;
    border-radius: 8px;
    background: #efefef;
    color: #111;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 120ms ease, background-color 120ms ease;
}

.neolif-profile-v2 .neolif-v7-favorites-load:active {
    transform: scale(.97);
    background: #dedede;
}

.neolif-profile-v2 .neolif-v7-favorites-load:disabled {
    opacity: .65;
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    .neolif-profile-v2 .neolif-v7-favorites-load {
        transition: none;
    }
}


/* NEOLIF Profile V7.1 — Compact actions and accessible tab states */
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-call,
.neolif-profile-v2 .neolif-v6-actions .neolif-v6-line,
.neolif-profile-v2 .neolif-v6-more-trigger {
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    box-sizing: border-box !important;
}

.neolif-profile-v2 .neolif-v6-more {
    flex: 0 0 32px !important;
    width: 32px !important;
    min-width: 32px !important;
}

.neolif-profile-v2 .neolif-v6-more-trigger {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
}

.neolif-profile-v2 .neolif-v7-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: inherit !important;
}

.neolif-profile-v2 .neolif-v7-tab-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link,
.neolif-profile-v2 .neolif-v6-tabs .nav-link:not(.active) {
    color: #737373 !important;
    font-weight: 500 !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link.active,
.neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] {
    color: #111111 !important;
    font-weight: 700 !important;
    border-bottom-color: #111111 !important;
}

.neolif-profile-v2 .neolif-v6-tabs .nav-link.active span,
.neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] span {
    color: inherit !important;
}


/* NEOLIF Profile V7.2 — Mobile + Tablet only */
.neolif-profile-v2 .neolif-v72-share {
    display: none;
}

@media (max-width: 1024px) {
    /* Native share button; desktop keeps existing More menu */
    .neolif-profile-v2 .neolif-v6-more {
        display: none !important;
    }

    .neolif-profile-v2 .neolif-v72-share {
        display: inline-flex !important;
        flex: 0 0 32px !important;
        width: 32px !important;
        min-width: 32px !important;
        max-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        padding: 0 !important;
        align-items: center !important;
        justify-content: center !important;
        background: #efefef !important;
        color: #111 !important;
        border: 0 !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        cursor: pointer;
        touch-action: manipulation;
    }

    .neolif-profile-v2 .neolif-v72-share svg {
        display: block;
        width: 20px;
        height: 20px;
    }

    /* Active and inactive tab colors */
    .neolif-profile-v2 .neolif-v6-tabs .nav-link,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link:not(.active) {
        color: #737373 !important;
        font-weight: 500 !important;
    }

    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] {
        color: #0B4F9F !important;
        font-weight: 600 !important;
        border-bottom-color: #0B4F9F !important;
    }

    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active span,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] span {
        color: inherit !important;
    }

    /* Move tabs 12px closer to contact buttons */
    .neolif-profile-v2 .neolif-v6-tabs {
        margin-top: 2px !important;
    }

    /* Move grid/content 8px closer to tabs */
    .neolif-profile-v2 .neolif-v6-tabs + .tab-content {
        margin-top: -8px !important;
    }

    /* Favorites full-bleed: match existing Posts grid */
    .neolif-profile-v2 #tab-neolif-favorites .neolif-profile-favorites-grid {
        width: 100vw !important;
        max-width: none !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 1px !important;
    }

    .neolif-profile-v2 .neolif-v72-share:active {
        transform: scale(.97);
        background: #dedede !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neolif-profile-v2 .neolif-v72-share {
        transition: none !important;
    }
}


/* NEOLIF Profile V7.3 — Mobile + Tablet scope only */
@media (max-width: 1024px) {

    /* Owner: keep original More menu; visitor: native Share */
    .neolif-profile-v2.neolif-v73-owner .neolif-v6-more {
        display: block !important;
    }

    .neolif-profile-v2.neolif-v73-owner .neolif-v72-share {
        display: none !important;
    }

    .neolif-profile-v2.neolif-v73-visitor .neolif-v6-more {
        display: none !important;
    }

    .neolif-profile-v2.neolif-v73-visitor .neolif-v72-share {
        display: inline-flex !important;
    }

    /* Circular avatar: subtle gray outline */
    .neolif-profile-v2 .neolif-profile-avatar {
        border: 2px solid #D1D5DB !important;
        border-radius: 50% !important;
        box-sizing: border-box !important;
    }

    /* Active tabs: text, SVG and underline */
    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] {
        color: #0B4F9F !important;
        font-weight: 600 !important;
        border-bottom: 2px solid #0B4F9F !important;
    }

    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active .neolif-v7-tab-icon,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] .neolif-v7-tab-icon,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active svg,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] svg {
        color: #0B4F9F !important;
        stroke: currentColor !important;
    }

    /* Restore grid spacing by 8px, tabs stay unchanged */
    .neolif-profile-v2 .neolif-v6-tabs + .tab-content {
        margin-top: 0 !important;
    }
}


/* NEOLIF Profile V7.4 — Mobile + Tablet visual refinements */
@media (max-width: 1024px) {

    /* Thinner and lighter circular avatar outline */
    .neolif-profile-v2 .neolif-profile-avatar {
        border: 1px solid #E5E7EB !important;
    }

    /* Move tabs down by 4px; leave listing grid spacing untouched */
    .neolif-profile-v2 .neolif-v6-tabs {
        margin-top: 6px !important;
    }

    /* Always show both tab labels alongside their icons */
    .neolif-profile-v2 .neolif-v6-tabs .nav-link > span:not(.neolif-v7-tab-icon) {
        display: inline !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: auto !important;
        max-width: none !important;
        font-size: 14px !important;
        line-height: 20px !important;
        white-space: nowrap !important;
    }

    /* Inactive tabs remain gray */
    .neolif-profile-v2 .neolif-v6-tabs .nav-link:not(.active):not([aria-selected="true"]) {
        color: #737373 !important;
        font-weight: 500 !important;
    }

    /* Active tab: black text, icon and underline */
    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] {
        color: #111111 !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #111111 !important;
    }

    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active > span,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] > span {
        color: #111111 !important;
    }

    .neolif-profile-v2 .neolif-v6-tabs .nav-link.active svg,
    .neolif-profile-v2 .neolif-v6-tabs .nav-link[aria-selected="true"] svg {
        color: #111111 !important;
        stroke: currentColor !important;
    }
}


/* NEOLIF Profile V7.5 — No-Bio contact spacing */
@media (max-width: 1024px) {
    .neolif-profile-v2 .agent-profile-wrap:not(:has(.neolif-v6-bio)) .neolif-v6-actions {
        margin-top: 16px !important;
    }
}
