.profile-details-page {
    background: radial-gradient(circle at top right, #e8f4ff 0%, #f7fbff 40%, #ffffff 100%);
}

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    color: #2e5baf;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.profile-hero-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 16px;
    background: #ffffff;
    border: 1px solid #dce9ff;
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 16px 34px rgba(56, 95, 170, 0.14);
    position: relative;
    overflow: hidden;
}

.profile-hero-card::before {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(73, 132, 255, 0.09);
    right: -70px;
    top: -80px;
}

.profile-hero-media img,
.profile-photo-fallback {
    width: 100%;
    max-width: 320px;
    height: 360px;
    border-radius: 16px;
    object-fit: cover;
    background: #edf3ff;
}

.profile-hero-media {
    position: relative;
}

.profile-video-trigger {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 44, 92, 0.82);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(10, 24, 54, 0.35);
    transition: transform .2s ease, background .2s ease;
}

.profile-video-trigger:hover {
    transform: translate(-50%, -50%) scale(1.05);
    background: rgba(30, 75, 148, 0.92);
}

.profile-video-modal {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: none;
}

.profile-video-modal.show {
    display: block;
}

.profile-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 38, 0.72);
}

.profile-video-dialog {
    position: relative;
    max-width: 840px;
    margin: 8vh auto 0;
    width: calc(100% - 32px);
    background: #0f213f;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 26px 44px rgba(0, 0, 0, 0.42);
}

.profile-video-dialog video {
    width: 100%;
    display: block;
    max-height: 74vh;
}

.profile-video-close {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 0;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    z-index: 1;
}

body.profile-video-open {
    overflow: hidden;
}

.profile-photo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 56px;
    font-weight: 800;
    color: #2e5baf;
}

.profile-pill {
    display: inline-block;
    background: linear-gradient(135deg, #3567c9, #4a8de0);
    color: #fff;
    border-radius: 100px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.profile-hero-content h1 {
    margin: 0 0 2px;
    font-size: 2rem;
    line-height: 1.2;
    color: #1a2b4f;
}

.profile-code {
    margin: 0 0 10px;
    color: #516488;
    font-weight: 600;
}

.profile-quick-details {
    background: #f6faff;
    border: 1px solid #dbe8ff;
    border-radius: 14px;
    padding: 6px 12px;
}

.quick-row {
    display: grid;
    grid-template-columns: 130px 1fr;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px dashed #d7e5ff;
}

.quick-row:last-child {
    border-bottom: 0;
}

.quick-row .label {
    color: #5e6f8f;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .2px;
    font-weight: 700;
}

.quick-row .value {
    color: #1f2f52;
    font-size: 15px;
    font-weight: 600;
    text-align: left;
}

.profile-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-profile-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-profile-action:hover {
    color: #fff;
    transform: translateY(-2px);
}

.btn-hire-whatsapp {
    background: linear-gradient(135deg, #11a04c, #1acb63);
    box-shadow: 0 8px 16px rgba(17, 160, 76, 0.25);
}

.btn-view-cv {
    background: linear-gradient(135deg, #2f61be, #4f93e2);
    box-shadow: 0 8px 16px rgba(47, 97, 190, 0.25);
}

.btn-play-video {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    box-shadow: 0 8px 16px rgba(91, 33, 182, 0.22);
}

.btn-profile-action.is-disabled {
    background: #90a2c5;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 0.9;
}

.other-profiles-wrap {
    margin-top: 26px;
    background: #ffffff;
    border: 1px solid #dce9ff;
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(56, 95, 170, 0.1);
}

.other-profiles-head h2 {
    margin: 0 0 6px;
    color: #1c2f56;
    font-size: 1.5rem;
}

.other-profiles-head p {
    margin: 0 0 16px;
    color: #61749a;
}

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

.other-profile-card {
    display: block;
    border: 1px solid #e1ebff;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.other-profile-card:hover {
    transform: translateY(-3px);
    border-color: #bfd5ff;
    box-shadow: 0 10px 22px rgba(64, 110, 198, 0.16);
}

.other-profile-card .thumb {
    position: relative;
    background: linear-gradient(180deg, #eef4ff 0%, #e3edff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.other-profile-card .thumb img,
.other-profile-card .thumb .profile-photo-fallback {
    width: 100%;
    height: 220px;
    border-radius: 0;
    object-fit: contain;
    object-position: center center;
}

.other-profile-card .thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(19, 35, 67, 0.25), rgba(19, 35, 67, 0));
    pointer-events: none;
}

.other-profile-card .ref-chip {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    background: rgba(17, 44, 92, 0.88);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .2px;
    border-radius: 100px;
    padding: 5px 10px;
}

.profile-video-trigger-sm {
    width: 56px;
    height: 56px;
    font-size: 20px;
    background: #ffffff00;
    color: #b8bdd0;
    box-shadow: 0 14px 26px rgba(17, 33, 57, 0.24);
}

.profile-video-trigger-sm:hover {
    background: #ffffff;
    transform: translate(-50%, -50%) scale(1.04);
}

.other-profile-card .meta {
    padding: 12px;
}

.other-profile-card h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #1e3058;
    line-height: 1.35;
}

.other-profile-card .meta-line {
    margin: 0 0 4px;
    color: #5f7195;
    font-size: 12px;
    line-height: 1.4;
}

.other-profile-card .meta-line strong {
    color: #314a79;
}

.other-profile-card .view-link {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    color: #2e5baf;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 0;
}

.other-profile-card .view-link::after {
    content: "→";
    margin-left: 6px;
    transition: transform .2s ease;
}

.other-profile-card:hover .view-link::after {
    transform: translateX(2px);
}

.more-profiles-cta {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.btn-view-more-profiles {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2f61be, #4f93e2);
    box-shadow: 0 10px 22px rgba(47, 97, 190, 0.28);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.btn-view-more-profiles:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 14px 26px rgba(47, 97, 190, 0.35);
    filter: saturate(1.08);
}

.btn-view-more-profiles i {
    font-size: 14px;
}

@media (max-width: 991px) {
    .profile-hero-card {
        grid-template-columns: 1fr;
    }

    .profile-hero-media img,
    .profile-photo-fallback {
        max-width: 100%;
        height: 340px;
    }

    .other-profiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .quick-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .quick-row .value {
        text-align: left;
    }

    .other-profiles-grid {
        grid-template-columns: 1fr;
    }
}
