body.nortfly-profile-template {
    background: var(--nf-ui-page);
}

.nf-profile-template-main {
    background:
        radial-gradient(circle at 90% 5%, rgba(20, 99, 255, .07), transparent 28%),
        var(--nf-ui-page);
    min-height: 70vh;
    padding: 1px 0;
}

.nf-ui-profile.nf-public {
    max-width: 1180px !important;
    padding: 28px 16px 56px;
}

.nf-ui-profile .nf-cover {
    aspect-ratio: 3 / 1;
    background: #eaf0f8;
    border-color: var(--nf-ui-border);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(2, 8, 23, .14);
    min-height: 230px;
}

.nf-ui-profile .nf-cover--empty {
    background:
        radial-gradient(circle at 82% 18%, rgba(0, 224, 164, .26), transparent 25%),
        radial-gradient(circle at 16% 90%, rgba(20, 99, 255, .32), transparent 34%),
        linear-gradient(135deg, #020817, #071735 58%, #061226);
}

.nf-ui-profile .nf-cover--empty::before {
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 50%;
    box-shadow:
        0 0 0 44px rgba(255, 255, 255, .025),
        0 0 0 88px rgba(255, 255, 255, .018);
    content: "";
    height: 250px;
    position: absolute;
    right: -40px;
    top: -80px;
    width: 250px;
}

.nf-ui-profile .nf-cover img {
    background: #eaf0f8;
    object-fit: contain;
}

.nf-ui-profile .nf-profile-head {
    align-items: center;
    background: #fff;
    border-radius: 24px !important;
    display: grid;
    gap: 18px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    margin: 18px 0 26px;
    padding: 20px;
    position: relative;
    z-index: 4;
}

.nf-ui-profile .nf-logo {
    border: 5px solid #fff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(2, 8, 23, .16);
    height: 96px;
    width: 96px;
}

.nf-ui-profile .nf-head-info h1 {
    color: var(--nf-ui-text);
    font-size: clamp(29px, 4vw, 40px);
    letter-spacing: -.035em;
    line-height: 1.02;
    margin-bottom: 7px;
}

.nf-ui-profile .nf-head-info p {
    color: var(--nf-ui-text-secondary);
    font-size: 14px;
}

.nf-ui-profile .nf-badges {
    gap: 6px;
    margin-top: 10px;
}

.nf-ui-profile .nf-badge {
    background: var(--nf-ui-muted-surface);
    border: 0;
    color: var(--nf-ui-text-secondary);
    padding: 6px 9px;
}

.nf-ui-profile .nf-badge.nf-verified {
    background: var(--nf-ui-success-soft) !important;
    color: var(--nf-ui-success) !important;
}

.nf-profile-primary-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    min-width: 190px;
}

.nf-profile-primary-actions .nf-ui-button {
    min-width: 100%;
}

body.nortfly-profile-template .nf-ui-profile .nf-card {
    border-color: var(--nf-ui-border) !important;
    border-radius: 22px !important;
    box-shadow: var(--nf-ui-shadow-sm) !important;
}

.nf-ui-profile .nf-section {
    margin-bottom: 20px;
    scroll-margin-top: 90px;
}

.nf-ui-profile .nf-card {
    padding: 24px;
}

.nf-ui-profile .nf-card h2 {
    color: var(--nf-ui-text);
    font-size: 22px;
    letter-spacing: -.02em;
    margin: 0 0 14px;
}

.nf-ui-profile .nf-card p {
    color: var(--nf-ui-text-secondary);
    line-height: 1.65;
}

.nf-ui-profile .nf-share-card {
    background:
        radial-gradient(circle at 100% 0%, rgba(20, 99, 255, .1), transparent 36%),
        #fff;
    padding: 22px;
}

.nf-ui-profile .nf-share-copy {
    margin-bottom: 14px;
}

.nf-ui-profile .nf-share-copy h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.nf-ui-profile .nf-share-actions {
    gap: 8px;
}

.nf-ui-profile .nf-share-actions .nf-link-btn {
    border-radius: 12px;
    height: 46px;
    min-height: 46px;
    text-transform: none;
}

.nf-ui-profile .nf-share-actions .nf-share-primary {
    background: linear-gradient(135deg, #3b22ff, #1463ff) !important;
}

.nf-ui-profile .nf-share-actions .nf-share-whatsapp {
    background: var(--nf-ui-success) !important;
    color: #fff !important;
}

.nf-ui-profile .nf-contact-address {
    grid-template-columns: 1fr;
}

.nf-ui-profile .nf-contact-card {
    background:
        linear-gradient(135deg, rgba(20, 99, 255, .035), rgba(0, 168, 132, .035)),
        #fff;
}

.nf-ui-profile .nf-contact-actions {
    align-items: stretch;
}

.nf-ui-profile .nf-contact-actions .nf-btn,
.nf-ui-profile .nf-contact-actions .nf-link-btn {
    min-height: 50px;
}

.nf-ui-profile .nf-map {
    border: 1px solid var(--nf-ui-border);
    border-radius: 18px;
}

.nf-ui-profile .nf-map-address {
    color: var(--nf-ui-text-secondary);
}

.nf-ui-profile .nf-public-job {
    border-color: var(--nf-ui-border);
    border-radius: 18px;
    box-shadow: none;
}

.nf-ui-profile .nf-platform-cta {
    background:
        radial-gradient(circle at 90% 0%, rgba(0, 224, 164, .18), transparent 34%),
        linear-gradient(135deg, #020817, #071735);
    border-color: rgba(255, 255, 255, .08) !important;
}

.nf-ui-profile .nf-platform-cta h2,
.nf-ui-profile .nf-platform-cta p {
    color: #fff;
}

.nf-ui-profile .nf-platform-cta p {
    opacity: .8;
}

.nf-ui-profile .nf-platform-cta .nf-link-btn {
    background: #fff;
    color: #071735 !important;
}

.nf-ui-profile :where(.nf-media-link, .nf-link-btn, .nf-btn):focus-visible {
    outline: 3px solid var(--nf-ui-focus);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .nf-ui-profile .nf-profile-head {
        align-items: start;
        grid-template-columns: auto minmax(0, 1fr);
    }

    .nf-profile-primary-actions {
        display: flex;
        flex-wrap: wrap;
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
    }

    .nf-profile-primary-actions .nf-ui-button {
        flex: 1;
        min-width: 150px;
    }
}

@media (max-width: 640px) {
    .nf-ui-profile.nf-public {
        padding: 14px 10px 40px;
    }

    .nf-ui-profile .nf-cover {
        aspect-ratio: 16 / 9;
        border-radius: 22px;
        min-height: 0;
    }

    .nf-ui-profile .nf-profile-head {
        grid-template-columns: 1fr;
        margin: 14px 0 18px;
        padding: 18px;
        text-align: center;
    }

    .nf-ui-profile .nf-logo {
        height: 82px;
        justify-self: center;
        margin-top: 0;
        width: 82px;
    }

    .nf-ui-profile .nf-badges {
        justify-content: center;
    }

    .nf-profile-primary-actions {
        display: grid;
    }

    .nf-profile-primary-actions .nf-ui-button {
        min-width: 100%;
        width: 100%;
    }

    .nf-ui-profile .nf-card {
        padding: 20px;
    }

    .nf-ui-profile .nf-share-actions {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 390px) {
    .nf-ui-profile .nf-share-actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nf-ui-profile * {
        scroll-behavior: auto !important;
    }
}
