:root {
    --talentos-main: #ea580c;
    --talentos-strong: #c2410c;
    --talentos-dark: #9a3412;
    --talentos-accent: #fb923c;
    --talentos-soft: #fff7ed;
    --talentos-surface: #ffedd5;
    --talentos-border: #fed7aa;
    --talentos-ring: rgba(249, 115, 22, 0.34);
    --project-main: #0145f2;
    --project-dark: #0138c7;
    --project-accent: #4debff;
}

.perfil_page {
    --blue: var(--talentos-main);
    --blue-dark: var(--talentos-dark);
    --cyan: var(--talentos-accent);
}

.perfil_page .navbar nav a:hover,
.perfil_page .navbar nav a.active,
.perfil_page .avatar_menu a:hover,
.perfil_page .avatar_menu a:focus-visible {
    background: var(--talentos-soft);
    color: var(--talentos-strong);
}

.perfil_page .avatar {
    background:
        linear-gradient(
            135deg,
            var(--talentos-strong),
            var(--talentos-main) 62%,
            var(--talentos-accent)
        );
    box-shadow:
        0 0 0 1px
        rgba(194, 65, 12, 0.22);
}

.perfil_page .avatar.avatar_com_foto {
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.perfil_page .avatar_menu::before {
    background:
        linear-gradient(
            90deg,
            var(--talentos-strong),
            var(--talentos-accent)
        );
}

.perfil_shell {
    width: min(1180px, calc(100% - 40px));
    margin: 24px auto 42px;
}

.perfil_top_actions {
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.perfil_back_button {
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--talentos-border);
    border-radius: 7px;
    background: #ffffff;
    color: var(--talentos-strong);
    font-size: 12px;
    font-weight: 600;
}

.perfil_back_button:hover {
    background: var(--talentos-soft);
    color: var(--talentos-dark);
}

.perfil_back_button:focus-visible,
.perfil_edit_button:focus-visible,
.perfil_primary_button:focus-visible,
.perfil_secondary_button:focus-visible,
.perfil_private_notice a:focus-visible {
    outline: 3px solid var(--talentos-ring);
    outline-offset: 2px;
}

.perfil_edit_button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid rgba(194, 65, 12, 0.26);
    border-radius: 9px;
    background:
        linear-gradient(
            135deg,
            var(--talentos-strong),
            var(--talentos-main)
        );
    box-shadow:
        0 10px 22px
        rgba(194, 65, 12, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background .18s ease;
}

.perfil_edit_button:hover {
    transform: translateY(-1px);
    background:
        linear-gradient(
            135deg,
            var(--talentos-dark),
            var(--talentos-strong)
        );
    box-shadow:
        0 14px 26px
        rgba(194, 65, 12, 0.18);
}

.perfil_private_notice {
    margin-bottom: 12px;
    padding: 15px 16px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    border: 1px solid #fed7aa;
    border-radius: 9px;
    background: linear-gradient(135deg, #fff7ed, #ffffff 78%);
    box-shadow: 0 9px 24px rgba(154, 52, 18, 0.07);
}

.perfil_private_notice[hidden] {
    display: none;
}

.perfil_private_notice_icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: #c2410c;
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.perfil_private_notice strong {
    color: #7c2d12;
    font-size: 13px;
}

.perfil_private_notice p {
    margin-top: 4px;
    color: #9a3412;
    font-size: 11px;
    line-height: 1.55;
}

.perfil_private_notice a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #fed7aa;
    border-radius: 7px;
    background: #ffffff;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.perfil_private_notice a:hover {
    border-color: #fb923c;
    background: #ffedd5;
}

.perfil_hero,
.perfil_panel {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow:
        0 9px 25px
        rgba(15, 23, 42, 0.05);
}

.perfil_hero {
    position: relative;
    min-height: 270px;
}

.perfil_loading,
.perfil_error {
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 30px;
    color: var(--muted);
    text-align: center;
}

.perfil_error strong {
    color: var(--danger);
    font-size: 16px;
}

.perfil_error p {
    max-width: 460px;
    line-height: 1.55;
}

.perfil_error button {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid var(--talentos-border);
    border-radius: 7px;
    background: var(--talentos-soft);
    color: var(--talentos-strong);
    font-weight: 600;
}

.perfil_banner {
    position: relative;
    height: 154px;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            var(--talentos-dark),
            var(--talentos-main) 58%,
            var(--talentos-accent)
        );
}

.perfil_banner_image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.perfil_banner_overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.04),
            rgba(15, 23, 42, 0.25)
        );
}

.perfil_identity_area {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 18px;
    padding: 0 24px 22px;
}

.perfil_avatar {
    position: relative;
    width: 92px;
    height: 92px;
    flex: 0 0 92px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -42px;
    border: 4px solid #ffffff;
    border-radius: 10px;
    background:
        linear-gradient(
            135deg,
            var(--talentos-strong),
            var(--talentos-main) 58%,
            var(--talentos-accent)
        );
    box-shadow:
        0 0 0 1px
        rgba(194, 65, 12, 0.2);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
}

.perfil_avatar_button {
    flex: 0 0 auto;
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 12px;
    background: transparent;
    line-height: 0;
    cursor: zoom-in;
}

.perfil_avatar_button .perfil_avatar {
    transition:
        transform 180ms ease,
        box-shadow 180ms ease;
}

.perfil_avatar_button:hover .perfil_avatar {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(194, 65, 12, 0.22),
        0 12px 30px rgba(15, 23, 42, 0.16);
}

.perfil_avatar_button:focus-visible {
    outline: 3px solid rgba(1, 69, 242, 0.28);
    outline-offset: 4px;
}

.perfil_avatar img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.perfil_avatar_fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.perfil_avatar img[hidden] + .perfil_avatar_fallback {
    z-index: 3;
}

html.perfil_photo_open,
html.perfil_photo_open body {
    overflow: hidden;
}

.perfil_photo_lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(77, 235, 255, 0.14),
            transparent 34%
        ),
        rgba(15, 23, 42, 0.72);
    animation: perfil-photo-fade 180ms ease both;
}

.perfil_photo_lightbox[hidden] {
    display: none;
}

.perfil_photo_dialog {
    position: relative;
    width: min(82vw, 560px);
    aspect-ratio: 1;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(237, 241, 245, 0.92)
        );
    box-shadow:
        0 30px 90px rgba(15, 23, 42, 0.34);
    animation: perfil-photo-pop 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.perfil_photo_expanded {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 21px;
    background:
        linear-gradient(
            135deg,
            var(--talentos-strong),
            var(--talentos-main) 58%,
            var(--talentos-accent)
        );
}

.perfil_photo_close {
    position: absolute;
    top: -12px;
    right: -12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--talentos-border);
    border-radius: 999px;
    background: #ffffff;
    color: var(--talentos-text);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.perfil_photo_close:focus-visible {
    outline: 3px solid rgba(1, 69, 242, 0.3);
    outline-offset: 3px;
}

@keyframes perfil-photo-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes perfil-photo-pop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.perfil_identity_text {
    min-width: 0;
    flex: 1;
    padding-top: 16px;
}

.perfil_public_badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid var(--talentos-border);
    border-radius: 6px;
    background: var(--talentos-soft);
    color: var(--talentos-dark);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.jovem_investidor_badge_inline {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-left: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(1, 69, 242, 0.24);
    border-radius: 6px;
    background:
        linear-gradient(135deg, rgba(1, 69, 242, 0.08), rgba(77, 235, 255, 0.12)),
        #f8fbff;
    color: #0145f2;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.perfil_identity_text h1 {
    margin-top: 8px;
    overflow-wrap: anywhere;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.15;
    font-weight: 680;
}

.perfil_username {
    display: block;
    margin-top: 4px;
    color: #7c5a4d;
    font-size: 12px;
    font-weight: 550;
}

.perfil_identity_signals {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.perfil_identity_signals span {
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border: 1px solid rgba(234, 88, 12, 0.15);
    border-radius: 6px;
    background: var(--talentos-soft);
    color: #8a3b17;
    font-size: 10px;
    font-weight: 600;
}

.perfil_content_grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(280px, 0.75fr);
    align-items: start;
    gap: 18px;
    margin-top: 18px;
}

.perfil_main_column,
.perfil_side_column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.perfil_side_column {
    position: sticky;
    top: 90px;
}

.perfil_panel {
    position: relative;
    padding: 21px;
}

.perfil_panel::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--talentos-strong),
            var(--talentos-accent)
        );
}

.perfil_panel_label {
    display: block;
    margin-bottom: 6px;
    color: var(--talentos-strong);
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

.perfil_panel h2 {
    font-size: 18px;
    line-height: 1.3;
    font-weight: 650;
}

#perfilBio {
    margin-top: 13px;
    color: #526176;
    font-size: 13px;
    line-height: 1.72;
    white-space: pre-line;
}

.perfil_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.perfil_tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 30px;
    padding: 6px 9px;
    border: 1px solid var(--talentos-border);
    border-radius: 6px;
    background: var(--talentos-soft);
    color: var(--talentos-dark);
    font-size: 11px;
    font-weight: 600;
}

.perfil_tag small {
    color: #9a6a55;
    font-size: 9px;
    font-weight: 500;
}

.perfil_section_heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.perfil_section_count {
    min-width: 30px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-radius: 6px;
    background: #edf3ff;
    color: var(--project-main);
    font-size: 11px;
    font-weight: 700;
}

.perfil_projects_list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.perfil_professional_assets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.perfil_professional_asset {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 74px;
    padding: 13px;
    border: 1px solid rgba(1, 69, 242, 0.16);
    border-radius: 12px;
    color: #0f172a;
    text-decoration: none;
    background:
        linear-gradient(
            135deg,
            rgba(1, 69, 242, 0.08),
            rgba(77, 235, 255, 0.08)
        ),
        #ffffff;
    transition:
        transform .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.perfil_professional_asset:hover,
.perfil_professional_asset:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(1, 69, 242, 0.32);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.perfil_professional_asset_icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #0145f2,
            #4debff
        );
    font-size: 13px;
    font-weight: 800;
}

.perfil_professional_asset.linkedin .perfil_professional_asset_icon {
    background:
        linear-gradient(
            135deg,
            #0a66c2,
            #38bdf8
        );
}

.perfil_professional_asset strong,
.perfil_professional_asset small {
    display: block;
}

.perfil_professional_asset strong {
    font-size: 13px;
    font-weight: 800;
}

.perfil_professional_asset small {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.35;
}

.perfil_project_card {
    position: relative;
    overflow: hidden;
    padding: 16px;
    border: 1px solid #dbe3f0;
    border-radius: 7px;
    background: #ffffff;
}

.perfil_project_card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background:
        linear-gradient(
            90deg,
            var(--project-main),
            var(--project-accent)
        );
}

.perfil_project_header,
.perfil_project_footer {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.perfil_project_area {
    display: block;
    margin-bottom: 4px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.perfil_project_header h3 {
    overflow-wrap: anywhere;
    font-size: 16px;
    line-height: 1.35;
}

.perfil_project_status {
    flex: 0 0 auto;
    padding: 5px 8px;
    border: 1px solid rgba(1, 69, 242, 0.14);
    border-radius: 6px;
    background: #f3f7ff;
    color: #234f9c;
    font-size: 9px;
    font-weight: 700;
}

.perfil_project_card > p {
    margin-top: 12px;
    color: #526176;
    font-size: 12px;
    line-height: 1.6;
}

.perfil_project_tags,
.perfil_project_metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.perfil_project_tags {
    margin-top: 12px;
}

.perfil_project_tags span {
    padding: 5px 7px;
    border: 1px solid #dfe7f1;
    border-radius: 5px;
    color: #41516a;
    font-size: 9px;
}

.perfil_project_footer {
    align-items: center;
    margin-top: 14px;
    padding-top: 13px;
    border-top: 1px solid #e8eef5;
}

.perfil_project_metrics {
    color: #64748b;
    font-size: 9px;
}

.perfil_project_footer button {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid rgba(1, 69, 242, 0.2);
    border-radius: 7px;
    background:
        linear-gradient(
            135deg,
            var(--project-main),
            #2563eb
        );
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
}

.perfil_metrics_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin-top: 14px;
}

.perfil_metrics_grid > div {
    min-height: 82px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px;
    border: 1px solid var(--talentos-border);
    border-radius: 7px;
    background: var(--talentos-soft);
}

.perfil_metrics_grid strong {
    color: var(--talentos-strong);
    font-size: 22px;
    line-height: 1;
}

.perfil_metrics_grid span {
    margin-top: 6px;
    color: #7c5a4d;
    font-size: 10px;
}

html.vantara_theme_dark body.perfil_page .perfil_banner,
html.vantara_theme_dark body.perfil_page .perfil_banner_image {
    background: inherit !important;
    filter: none !important;
    box-shadow: none !important;
}

html.vantara_theme_dark body.perfil_page .perfil_banner_overlay {
    background:
        linear-gradient(
            180deg,
            rgba(15, 23, 42, 0.02),
            rgba(15, 23, 42, 0.16)
        ) !important;
}

html.vantara_theme_dark body.perfil_page .perfil_public_badge,
html.vantara_theme_dark body.perfil_page .perfil_identity_signals span {
    background:
        linear-gradient(
            135deg,
            rgba(251, 146, 60, 0.16),
            rgba(194, 65, 12, 0.12)
        ) !important;
    border-color: rgba(251, 146, 60, 0.32) !important;
    color: #fed7aa !important;
}

html.vantara_theme_dark body.perfil_page .jovem_investidor_badge_inline {
    background:
        linear-gradient(
            135deg,
            rgba(1, 69, 242, 0.2),
            rgba(77, 235, 255, 0.14)
        ) !important;
    border-color: rgba(77, 235, 255, 0.34) !important;
    color: #bfdbfe !important;
}

html.vantara_theme_dark body.perfil_page .perfil_tag,
html.vantara_theme_dark body.perfil_page .perfil_project_tags span {
    background: rgba(30, 41, 59, 0.92) !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
    color: #dbeafe !important;
}

html.vantara_theme_dark body.perfil_page .perfil_tag small {
    color: #93a9c7 !important;
}

html.vantara_theme_dark body.perfil_page .perfil_metrics_grid > div {
    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, 0.92),
            rgba(30, 41, 59, 0.72)
        ) !important;
    border-color: rgba(96, 165, 250, 0.26) !important;
}

html.vantara_theme_dark body.perfil_page .perfil_metrics_grid strong {
    color: #f8fafc !important;
}

html.vantara_theme_dark body.perfil_page .perfil_metrics_grid span,
html.vantara_theme_dark body.perfil_page .perfil_project_metrics {
    color: #9fb0c8 !important;
}

html.vantara_theme_dark body.perfil_page .perfil_section_count,
html.vantara_theme_dark body.perfil_page .perfil_project_status {
    background: rgba(30, 41, 59, 0.94) !important;
    border-color: rgba(96, 165, 250, 0.34) !important;
    color: #bfdbfe !important;
}

html.vantara_theme_dark body.perfil_page .perfil_professional_asset {
    color: #e5edf7;
    border-color: rgba(77, 235, 255, 0.18);
    background:
        linear-gradient(
            135deg,
            rgba(1, 69, 242, 0.18),
            rgba(77, 235, 255, 0.08)
        ),
        rgba(15, 23, 42, 0.86);
}

html.vantara_theme_dark body.perfil_page .perfil_professional_asset small {
    color: #9fb3cf;
}

.perfil_actions_panel {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.perfil_primary_button,
.perfil_secondary_button {
    min-height: 38px;
    padding: 8px 13px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
}

.perfil_primary_button {
    border: 1px solid rgba(194, 65, 12, 0.28);
    background:
        linear-gradient(
            135deg,
            var(--talentos-strong),
            var(--talentos-main)
        );
    box-shadow:
        0 7px 16px
        rgba(194, 65, 12, 0.15);
    color: #ffffff;
}

.perfil_primary_button:hover,
.perfil_primary_button.is_active {
    background:
        linear-gradient(
            135deg,
            var(--talentos-dark),
            var(--talentos-strong)
        );
}

.perfil_primary_button.like_just_changed {
    animation: perfilLikePulse 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes perfilLikePulse {
    0% {
        transform: scale(1);
    }

    42% {
        transform: scale(1.045);
        box-shadow:
            0 12px 26px rgba(234, 88, 12, 0.16),
            0 0 0 7px rgba(255, 237, 213, 0.72);
    }

    100% {
        transform: scale(1);
    }
}

.perfil_secondary_button {
    border: 1px solid var(--talentos-border);
    background: #ffffff;
    color: var(--talentos-strong);
}

.perfil_secondary_button:disabled {
    cursor: not-allowed;
    border-color: #e2e8f0;
    background: #f8fafc;
    color: #94a3b8;
}

.perfil_actions_panel p {
    color: #7b8799;
    font-size: 10px;
    line-height: 1.55;
}

.perfil_edit_footer {
    margin-top: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--talentos-border);
    border-radius: 9px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(251, 146, 60, 0.14),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #ffffff,
            var(--talentos-soft)
        );
    box-shadow:
        0 12px 30px
        rgba(154, 52, 18, 0.06);
}

.perfil_edit_footer[hidden],
.perfil_edit_button[hidden] {
    display: none;
}

.perfil_edit_footer h2 {
    color: var(--text);
    font-size: 18px;
    line-height: 1.3;
}

.perfil_edit_footer p {
    margin-top: 7px;
    color: #7b8799;
    font-size: 12px;
    line-height: 1.6;
}

.perfil_empty {
    padding: 16px;
    border: 1px dashed #dbe3f0;
    border-radius: 7px;
    color: #7b8799;
    font-size: 12px;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 860px) {
    .perfil_shell {
        width: min(100% - 24px, 720px);
    }

    .perfil_content_grid {
        grid-template-columns: 1fr;
    }

    .perfil_edit_footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .perfil_side_column {
        position: static;
    }
}

@media (max-width: 620px) {
    .perfil_shell {
        margin-top: 14px;
    }

    .perfil_banner {
        height: 126px;
    }

    .perfil_private_notice {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .perfil_private_notice_icon {
        width: 34px;
        height: 34px;
    }

    .perfil_private_notice a {
        grid-column: 1 / -1;
        width: 100%;
    }

    .perfil_identity_area {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding: 0 16px 18px;
    }

    .perfil_avatar {
        width: 78px;
        height: 78px;
        flex-basis: 78px;
        margin-top: -34px;
    }

    .perfil_identity_text {
        width: 100%;
        padding-top: 0;
    }

    .perfil_panel {
        padding: 18px 15px;
    }

    .perfil_project_header,
    .perfil_project_footer {
        flex-direction: column;
    }

    .perfil_professional_assets {
        grid-template-columns: 1fr;
    }

    .perfil_project_footer button {
        width: 100%;
    }
}

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: vantara-page-exit 280ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

::view-transition-new(root) {
    animation: vantara-page-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes vantara-page-exit {
    from {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(var(--vantara-page-exit-x, -18px)) scale(0.992);
    }
}

@keyframes vantara-page-enter {
    from {
        opacity: 0;
        transform: translateX(var(--vantara-page-enter-x, 18px)) scale(0.992);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none !important;
    }

    * {
        scroll-behavior: auto !important;
    }
}


/*
    ========================================
    VANTARA MOBILE APP DENSITY — PERFIL
    ========================================
*/

@media (max-width: 768px) {
    .perfil_shell {
        width: min(100% - 28px, 720px);
    }

    .perfil_hero,
    .perfil_panel,
    .perfil_project_card,
    .perfil_edit_footer {
        border-radius: 18px;
        box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
    }

    .perfil_banner {
        height: 118px;
    }

    .perfil_identity_area {
        gap: 12px;
        padding: 0 16px 16px;
    }

    .perfil_avatar {
        width: 72px;
        height: 72px;
        flex-basis: 72px;
        margin-top: -32px;
        border-radius: 16px;
        font-size: 22px;
    }

    .perfil_identity_text {
        padding-top: 12px;
    }

    .perfil_public_badge {
        min-height: 22px;
        padding: 4px 7px;
        border-radius: 999px;
        font-size: 8px;
    }

    .perfil_identity_text h1 {
        margin-top: 6px;
        font-size: 24px;
        line-height: 1.12;
    }

    .perfil_username {
        font-size: 11px;
    }

    .perfil_identity_signals,
    .perfil_tags,
    .perfil_project_tags,
    .perfil_project_metrics {
        gap: 5px;
    }

    .perfil_identity_signals span,
    .perfil_tag,
    .perfil_project_tags span {
        min-height: 24px;
        padding: 4px 7px;
        border-radius: 999px;
        font-size: 10px;
    }

    .perfil_content_grid,
    .perfil_main_column,
    .perfil_side_column {
        gap: 12px;
        margin-top: 12px;
    }

    .perfil_panel {
        padding: 16px;
    }

    .perfil_panel h2 {
        font-size: 17px;
    }

    #perfilBio,
    .perfil_project_card > p,
    .perfil_edit_footer p {
        font-size: 13px;
        line-height: 1.5;
    }

    .perfil_project_card > p {
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .perfil_project_card {
        padding: 14px;
    }

    .perfil_project_header h3 {
        font-size: 15.5px;
    }

    .perfil_project_footer {
        gap: 10px;
        margin-top: 11px;
        padding-top: 11px;
    }

    .perfil_metrics_grid {
        gap: 8px;
    }

    .perfil_metrics_grid > div {
        min-height: 72px;
        padding: 10px;
        border-radius: 14px;
    }

    .perfil_metrics_grid strong {
        font-size: 19px;
    }

    .perfil_primary_button,
    .perfil_secondary_button,
    .perfil_project_footer button,
    .perfil_private_notice a {
        min-height: 36px;
        padding: 8px 11px;
        border-radius: 12px;
        font-size: 12px;
    }

    .perfil_edit_footer {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .perfil_shell {
        width: min(100% - 24px, 480px);
    }

    .perfil_identity_area,
    .perfil_project_header,
    .perfil_project_footer,
    .perfil_edit_footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .perfil_avatar {
        width: 66px;
        height: 66px;
        flex-basis: 66px;
    }

    .perfil_identity_text h1 {
        font-size: 22px;
    }

    .perfil_project_footer button,
    .perfil_primary_button,
    .perfil_secondary_button {
        width: 100%;
    }

    .perfil_photo_dialog {
        width: min(84vw, 340px);
        padding: 4px;
        border-radius: 24px;
    }

    .perfil_photo_expanded {
        border-radius: 18px;
    }

    .perfil_photo_close {
        top: -10px;
        right: -10px;
        width: 34px;
        height: 34px;
        font-size: 21px;
    }
}

html.vantara_page_reveal body {
    animation: vantara-page-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    html.vantara_page_reveal body {
        animation: none !important;
    }

    .perfil_avatar_button .perfil_avatar,
    .perfil_photo_lightbox,
    .perfil_photo_dialog,
    .perfil_primary_button.like_just_changed {
        animation: none !important;
        transition: none !important;
    }
}

/*
    Mobile card compactness refinement.
*/

@media (max-width: 768px) {
    .perfil_panel,
    .perfil_project_card,
    .perfil_edit_footer {
        padding: 14px;
    }

    .perfil_project_footer {
        gap: 8px;
        margin-top: 9px;
        padding-top: 9px;
    }

    .perfil_primary_button,
    .perfil_secondary_button,
    .perfil_project_footer button,
    .perfil_private_notice a {
        min-height: 34px;
        padding: 7px 10px;
        border-radius: 11px;
    }
}

@media (max-width: 480px) {
    .perfil_project_footer {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        flex-direction: initial;
    }

    .perfil_project_footer button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 360px) {
    .perfil_project_footer {
        grid-template-columns: 1fr;
    }
}
