/* Profile pages: Figma-driven final layer loaded after style.css. */
.profile-page {
    color: #0d0d0d;
    font-family: 'Manrope', 'Helvetica Neue', Tahoma, sans-serif;
}

.profile-page .profile-hero > .container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

.profile-page__section > .container {
    max-width: 1200px;
    padding-left: 15px;
    padding-right: 15px;
}

.profile-hero {
    padding: 30px 0 0 !important;
}

.profile-hero__cover {
    position: relative;
    height: 230px;
    min-height: 230px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    background-color: #eff6fd;
    background-position: center;
    background-size: cover;
    box-shadow: none;
}

.profile-hero__cover::after {
    display: none !important;
}

.profile-hero__cover--placeholder {
    background: transparent !important;
}

.profile-hero__cover-edit {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 2;
    min-height: 32px;
    padding: 8px 15px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 0 !important;
    border-radius: 5px !important;
    background: rgba(0, 0, 0, .5) !important;
    color: #fff !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 600;
    backdrop-filter: blur(40px);
}

.profile-hero__panel {
    position: relative;
    margin-top: -95px !important;
}

.profile-hero__avatar-wrap {
    position: absolute !important;
    top: -70px !important;
    left: 61px !important;
    z-index: 2;
    width: 150px !important;
    transform: none !important;
}

.profile-hero__avatar-wrap .avatar,
.profile-hero__avatar-wrap .image {
    width: 150px !important;
    height: 150px !important;
    min-width: 150px !important;
    min-height: 150px !important;
    border-radius: 50% !important;
}

.profile-hero__avatar-wrap .image {
    border: 5px solid #fff !important;
    background-color: #fff;
    background-position: center !important;
    background-size: cover !important;
    box-shadow: none !important;
}

.profile-hero__avatar-wrap .online {
    top: 7px !important;
    right: 7px !important;
    width: 18px !important;
    height: 18px !important;
    border: 3px solid #fff !important;
    box-shadow: none !important;
}

.profile-hero__card {
    min-height: 171px !important;
    margin-top: 75px !important;
    padding: 15px 20px 20px 231px !important;
    border-radius: 15px !important;
    background: #eff6fd !important;
    box-shadow: none !important;
}

.profile-hero__layout {
    min-height: 136px;
    display: flex;
    align-items: flex-start !important;
    justify-content: space-between;
    gap: 24px;
}

.profile-hero__info {
    max-width: 640px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-hero__identity {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-hero__name {
    margin: 0 !important;
    color: #0d0d0d;
    font-size: 22px !important;
    line-height: 26px !important;
    font-weight: 700 !important;
}

.profile-hero__login,
.profile-hero__description {
    color: #0d0d0d;
    font-size: 14px;
    line-height: 17px;
    font-weight: 400;
}

.profile-hero__company-block {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.profile-hero__company {
    color: #0d0d0d;
    font-size: 16px;
    line-height: 1;
    font-weight: 600;
}

.profile-hero__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-hero__socials .simple-link {
    width: 25px;
    height: 25px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 0;
    background: transparent;
    text-decoration: none;
}

.profile-hero__aside {
    min-width: 250px;
    min-height: 136px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 23px;
}

.profile-hero__actions,
.profile-hero__stats {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
}

.profile-hero__stats {
    flex-direction: column;
}

.profile-hero__action,
.profile-hero__action--secondary,
.profile-hero__action--primary,
.profile-hero__action--ghost {
    min-height: 32px;
    padding: 8px 10px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 5px !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 500;
    text-decoration: none !important;
}

.profile-hero__action--primary {
    background: #00a1f5 !important;
    border: 1px solid #00a1f5 !important;
    color: #fff !important;
}

.profile-hero__action--secondary {
    background: #fff !important;
    border: 1px solid #cecece !important;
    color: #0d0d0d !important;
}

.profile-hero__action--ghost {
    padding: 8px 15px;
    background: #00A1F5;
    color: white;
}

.profile-hero__action--ghost:hover {
    background: #0088F0;
    color: white;
}

.profile-hero__stat-pill {
    min-height: 27px;
    padding: 5px 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #cecece !important;
    border-radius: 3px !important;
    background: transparent !important;
    color: #0d0d0d !important;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
}

.profile-hero__stat-rating {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.profile-hero__stat-rating i {
    color: #ffc500;
    font-size: 12px;
}

.profile-page__section {
    margin-top: 60px !important;
    padding-top: 0 !important;
}

.profile-page__section--compact {
    margin-top: 24px !important;
}

.profile-page__section-head {
    max-width: 1201px;
    margin: 0 auto 32px !important;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    gap: 16px;
}

.profile-page__section-head--solo {
    justify-content: flex-start;
}

.profile-page__section-title {
    margin: 0 !important;
    color: #0d0d0d;
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
}

.profile-page__section-link {
    color: #00a1f5;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
    text-decoration: none;
}

.profile-page__section-link:hover,
.profile-page__section-link:focus {
    color: #0088F0;
}

.profile-page__stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
}

.profile-page__stat-card,
.profile-page .profile-page__stat-card,
article.profile-page__stat-card {
    position: relative;
    flex: 0 0 224px;
    width: 224px;
    height: 143px;
    min-height: 143px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.profile-page__stat-icon {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 1;
    width: 45px !important;
    height: 45px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    background: linear-gradient(180deg, #00a7ff 0%, #0093e0 100%) !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: translateX(-50%);
}

.profile-page__stat-icon i {
    font-size: 18px;
}

.profile-page__stat-surface,
.profile-page .profile-page__stat-surface {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 121px;
    min-height: 121px !important;
    padding: 34px 27px 22px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0 !important;
    border-radius: 10px !important;
    background: #eff6fd !important;
    box-shadow: none !important;
}

.profile-page__stat-title,
.profile-page__stat-number {
    margin: 0 !important;
    color: #0d0d0d !important;
    font-size: 16px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    text-align: center;
}

.profile-page__static-row {
    max-width: 1201px;
    margin: 0 auto;
    display: flex !important;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px;
}

.profile-page .product-card--managed {
    position: relative;
    z-index: 1;
}

.profile-page .product-card--managed:focus-within,
.profile-page .product-card--managed:hover {
    z-index: 6;
}

.profile-page .product-card--managed .product-card__inner {
    overflow: visible !important;
}

.profile-page .product-card--managed .product-card__media {
    border-radius: 5px 5px 0 0;
}

.profile-page .product-card__body {
    position: relative;
}

.profile-page .product-card__status-row {
    align-items: flex-start !important;
    gap: 14px;
}

.profile-page .product-card__status-label {
    display: inline-block;
    padding-bottom: 6px;
    color: #0d0d0d;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 500;
}

.profile-page .product-card__status--approved .product-card__status-label {
    border-bottom: 2px solid #22bd4a;
}

.profile-page .product-card__status--pending .product-card__status-label {
    border-bottom: 2px solid #e6c562;
}

.profile-page .product-card__status--rejected .product-card__status-label {
    border-bottom: 2px solid #eb6a6a;
}

.profile-page .product-card__status-row .product-manage-dropdown__menu {
    inset: calc(100% + 8px) 0 auto auto !important;
    transform: none !important;
}

.profile-page .portfolio-card,
.profile-page .review-card {
    width: 100%;
    margin: 0 auto !important;
}

.profile-page .portfolio-card {
    border-radius: 5px;
    background: #fff;
    box-shadow: 2px 2px 10px rgba(166, 166, 166, .18);
    overflow: hidden;
}

.profile-page .portfolio-card__media {
    height: 252px;
    background-position: center;
    background-size: cover;
}

.profile-page .portfolio-card__overlay {
    min-height: 86px;
    padding: 14px 16px 12px;
    background: linear-gradient(180deg, rgba(13, 13, 13, 0) 0%, rgba(13, 13, 13, .74) 100%);
}

.profile-page .review-card {
    min-height: 156px;
    padding: 20px;
}

.profile-page__empty {
    max-width: 1201px;
    min-height: 68px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    background: #eff6fd;
    color: #0d0d0d;
    font-size: 16px;
}

@media (max-width: 1349.98px) {
    html body .profile-page .profile-hero > .container,
    html body .profile-page__section > .container {
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .profile-page__stats-grid {
        gap: 20px;
    }
}

@media (max-width: 1199.98px) {
    .profile-page__stats-grid {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 991.98px) {
    .profile-page__stat-card {
        flex: 0 0 calc(33.333% - 14px);
        width: calc(33.333% - 14px);
        max-width: 224px;
    }
}

@media (max-width: 767.98px) {
    .profile-page .profile-hero > .container,
    .profile-page__section > .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .profile-hero {
        padding-top: 0 !important;
    }

    .profile-hero__cover {
        height: 164px !important;
        min-height: 164px !important;
    }

    .profile-hero__cover-edit {
        top: 15px !important;
        right: 15px !important;
        min-height: 29px;
        padding: 7px 10px !important;
        font-size: 12px;
    }

    .profile-hero__panel {
        min-height: auto;
        margin-top: -70px !important;
    }

    .profile-hero__avatar-wrap {
        top: -55px !important;
        left: 50% !important;
        width: 112px !important;
        transform: translateX(-50%) !important;
    }

    .profile-hero__avatar-wrap .avatar,
    .profile-hero__avatar-wrap .image {
        width: 112px !important;
        height: 112px !important;
        min-width: 112px !important;
        min-height: 112px !important;
    }

    .profile-hero__avatar-wrap .image {
        border-width: 4px !important;
    }

    .profile-hero__avatar-wrap .online {
        top: 8px !important;
        right: 8px !important;
        width: 14px !important;
        height: 14px !important;
        border-width: 2px !important;
    }

    .profile-hero__card {
        min-height: 276px !important;
        margin-top: 55px !important;
        padding: 72px 16px 20px !important;
    }

    .profile-hero__layout {
        min-height: 0;
        flex-direction: column;
        align-items: stretch !important;
        gap: 18px;
    }

    .profile-hero__info,
    .profile-hero__aside {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 0;
        align-items: center;
        text-align: center;
    }

    .profile-hero__actions,
    .profile-hero__stats {
        width: 100%;
        align-items: stretch;
    }

    .profile-hero__action,
    .profile-hero__stat-pill {
        width: 100%;
        justify-content: center;
    }

    .profile-page__section {
        margin-top: 48px !important;
    }

    .profile-page__section-head {
        margin-bottom: 24px !important;
        align-items: flex-start !important;
    }

    .profile-page__section-title {
        font-size: 18px !important;
    }

    .profile-page__stats-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 16px !important;
    }

    .profile-page__stat-card {
        flex: 0 0 121px;
        width: 100%;
        max-width: none;
        height: 121px;
        min-height: 121px !important;
    }

    .profile-page__stat-surface {
        height: 99px;
        min-height: 99px !important;
        padding: 30px 20px 18px !important;
    }

    .profile-page__static-row {
        justify-content: center;
        gap: 16px;
    }

    .profile-page .portfolio-card__media {
        height: 176px;
    }
}

@media (max-width: 767.98px) {
    html body .profile-page .profile-hero > .container,
    html body .profile-page__section > .container {
        max-width: 100% !important;
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    html body .profile-page .profile-page__stats-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        align-items: stretch !important;
        gap: 18px !important;
    }

    html body .profile-page .profile-page__stat-card {
        position: relative !important;
        width: 100% !important;
        max-width: none !important;
        height: auto !important;
        min-height: 133px !important;
        padding-top: 24px !important;
        flex: 0 0 auto !important;
    }

    html body .profile-page .profile-page__stat-icon {
        position: absolute !important;
        top: 0 !important;
        left: 50% !important;
        margin: 0 !important;
        transform: translate(-50%, 0) !important;
        z-index: 2;
    }

    html body .profile-page .profile-page__stat-surface {
        width: 100% !important;
        height: auto !important;
        min-height: 104px !important;
        padding: 48px 18px 20px !important;
    }

    html body .profile-page .profile-hero__cover-edit {
        right: 15px !important;
        left: auto !important;
    }
}

.profile-hero__cover-edit {
    cursor: pointer;
    appearance: none;
}

.profile-cover-modal-open {
    overflow: hidden;
}

.profile-cover-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: rgba(13, 13, 13, 0.58);
    opacity: 0;
    transition: opacity 0.18s ease;
}

.profile-cover-modal.is-open {
    opacity: 1;
}

.profile-cover-modal__dialog {
    width: min(100%, 720px);
    max-height: calc(100vh - 48px);
    overflow: auto;
    padding: 28px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(13, 13, 13, .22);
}

.profile-cover-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-cover-modal__title {
    margin: 0;
    color: #0d0d0d;
    font-size: 24px;
    line-height: 1.15;
    font-weight: 700;
}

.profile-cover-modal__subtitle {
    margin: 10px 0 0;
    color: rgba(13, 13, 13, .66);
    font-size: 14px;
    line-height: 1.6;
}

.profile-cover-modal__close {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(13, 13, 13, .12);
    border-radius: 50%;
    background: #fff;
    color: #0d0d0d;
    cursor: pointer;
}

.profile-cover-modal__form {
    display: grid;
    gap: 22px;
}

.profile-cover-modal__preview-shell {
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(0, 161, 245, .18);
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(239, 246, 253, .94) 0%, rgba(255, 255, 255, .98) 100%);
}

.profile-cover-modal__preview {
    height: 115px;
    border-radius: 14px;
    background-color: #eff6fd;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.profile-cover-modal__preview--placeholder {
    background-image: linear-gradient(135deg, rgba(0, 161, 245, .12) 0%, rgba(34, 189, 74, .08) 100%);
}

.profile-cover-modal__copy {
    display: grid;
    gap: 8px;
}

.profile-cover-modal__eyebrow {
    color: rgba(13, 13, 13, .62);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.profile-cover-modal__text {
    margin: 0;
    color: #0d0d0d;
    font-size: 15px;
    line-height: 1.6;
}

.profile-cover-modal__upload {
    display: grid;
    gap: 10px;
}

.profile-cover-modal__input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.profile-cover-modal__picker {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px dashed rgba(0, 161, 245, .4);
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    cursor: pointer;
}

.profile-cover-modal__picker-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6fd;
    color: #00a1f5;
    font-size: 20px;
}

.profile-cover-modal__picker-copy {
    display: grid;
    gap: 4px;
    color: #0d0d0d;
    font-size: 14px;
    line-height: 1.5;
}

.profile-cover-modal__picker-copy strong {
    font-size: 16px;
    font-weight: 700;
}

.profile-cover-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-cover-modal__submit,
.profile-cover-modal__cancel,
.profile-cover-modal__danger {
    min-height: 46px;
    padding: 13px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1;
    font-weight: 600;
    cursor: pointer;
}

.profile-cover-modal__submit {
    border: 1px solid #22bd4a;
    background: #22bd4a;
    color: #fff;
    box-shadow: 0 14px 28px rgba(34, 189, 74, .22);
}

.profile-cover-modal__cancel {
    border: 1px solid rgba(13, 13, 13, .2);
    background: #fff;
    color: #0d0d0d;
}

.profile-cover-modal__danger {
    border: 1px solid rgba(226, 79, 79, .24);
    background: rgba(255, 244, 242, .95);
    color: #d54444;
}

@media (max-width: 767.98px) {
    .profile-cover-modal {
        padding: 16px;
        align-items: flex-end;
    }

    .profile-cover-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 22px 18px 18px;
        border-radius: 18px 18px 0 0;
    }

    .profile-cover-modal__header {
        margin-bottom: 18px;
    }

    .profile-cover-modal__title {
        font-size: 20px;
    }

    .profile-cover-modal__preview {
        min-height: 150px;
    }

    .profile-cover-modal__picker {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-cover-modal__picker-icon {
        margin: 0 auto;
    }

    .profile-cover-modal__actions {
        flex-direction: column;
    }

    .profile-cover-modal__submit,
    .profile-cover-modal__cancel,
    .profile-cover-modal__danger {
        width: 100%;
    }
}

.profile-page .profile-page__static-row {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 20px !important;
}
