* {
    box-sizing: border-box;
}

:root {
    --profile-radius: 28px;
    --cover-max-width: 1400px;

    --theme-main: #ff7a3d;
    --theme-soft: #ffd9c7;

    --text-main: #1f1f1f;

    --glass-tint: rgba(132, 92, 255, 0.24);
    --glass-tint-soft: rgba(132, 92, 255, 0.18);
}

.profile-cover__avatar-wrap{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-avatar-rating{
    width: 82%;
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

.profile-section {
    min-height: calc(100vh - 55px);
    color: var(--text-main);
}

.profile-cover-shell {
    max-width: var(--cover-max-width);
    margin: 16px auto 0;
    padding: 0 16px;
    transition: padding-left 0.32s ease, transform 0.32s ease;
}

.profile-cover {
    position: relative;
    min-height: calc(100vh - 71px);
    border-radius: var(--profile-radius) var(--profile-radius) 0 0;
    background:
        linear-gradient(
            to bottom,
            var(--theme-main) 0%,
            var(--theme-soft) 24%,
            #ffffff 62%
        );
}

.profile-cover__content {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* оверлей осветления */
.profile-cover__fade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(255,255,255,0) 0%,
            rgba(255,255,255,0.05) 32%,
            rgba(255,255,255,0.50) 58%,
            rgba(255,255,255,0.96) 78%,
            #ffffff 100%
        );
    pointer-events: none;
    z-index: 1;
}

/* svg-декор */
.profile-cover__art {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 420px; /* нужная высота зоны декора */
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.profile-cover__art svg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleY(1.2); /* увеличить по вертикали */
    transform-origin: top center;
}

.profile-cover__art--mobile {
    display: none;
}

/* блок с аватаркой и текстом */
.profile-cover__identity {
    position: relative;
    top: 28px;
    left: 28px;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 22px;
    width: calc(100% - 56px);
}

.profile-cover__avatar-wrap {
    flex: 0 0 auto;
}

/* аватарка */
.profile-avatar {
    width: 180px;
    aspect-ratio: 3 / 4;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 12px 34px rgba(31, 31, 31, 0.14);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-avatar__placeholder-circle {
    width: 74px;
    height: 74px;
    border-radius: 999px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--glass-tint); /* ← главный момент */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 8px 20px rgba(31, 31, 31, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 8px rgba(25, 25, 45, 0.25);

    font-size: 34px;
    font-weight: 800;
    user-select: none;
}

/* текст справа */
.profile-cover__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.profile-cover__name {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 12px 22px;
    border-radius: 18px;
    background: var(--glass-tint);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        0 10px 28px rgba(31, 31, 31, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.98);
    text-shadow: 0 2px 10px rgba(45, 18, 110, 0.30);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.profile-cover__status {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--glass-tint-soft);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 20px rgba(31, 31, 31, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 6px rgba(45, 18, 110, 0.24);
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

/* темы */
.profile-page--theme-brown {
    --theme-main: #ff7a3d;
    --theme-soft: #ffd8c6;
    --glass-tint: rgba(255, 122, 61, 0.24);
    --glass-tint-soft: rgba(255, 122, 61, 0.18);
}

.profile-page--theme-pink {
    --theme-main: #ff5f6d;
    --theme-soft: #ffd0d5;
    --glass-tint: rgba(255, 95, 109, 0.24);
    --glass-tint-soft: rgba(255, 95, 109, 0.18);
}

.profile-page--theme-yellow {
    --theme-main: #f6a623;
    --theme-soft: #ffe6b0;
    --glass-tint: rgba(246, 166, 35, 0.24);
    --glass-tint-soft: rgba(246, 166, 35, 0.18);
}

.profile-page--theme-green {
    --theme-main: #33c48d;
    --theme-soft: #cbf4e4;
    --glass-tint: rgba(51, 196, 141, 0.24);
    --glass-tint-soft: rgba(51, 196, 141, 0.18);
}

.profile-page--theme-blue {
    --theme-main: #42a5ff;
    --theme-soft: #d3ebff;
    --glass-tint: rgba(66, 165, 255, 0.24);
    --glass-tint-soft: rgba(66, 165, 255, 0.18);
}

.profile-page--theme-violet {
    --theme-main: #8d63ff;
    --theme-soft: #ddd2ff;
    --glass-tint: rgba(141, 99, 255, 0.26);
    --glass-tint-soft: rgba(141, 99, 255, 0.20);
}

.profile-page--theme-lilac {
    --theme-main: #d94cff;
    --theme-soft: #efd1ff;
    --glass-tint: rgba(217, 76, 255, 0.24);
    --glass-tint-soft: rgba(217, 76, 255, 0.18);
}


.profile-cover__about {
    width: 100%;
    min-height: 134px;
    padding: 5px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    text-align: left !important;
}

.profile-cover__about-line {
    display: block !important;
    width: 100%;
    text-align: left !important;
    white-space: normal;
    word-break: break-word;
    line-height: 1.6;
    color: #1f1f1f;
    font-size: 14px;
}

.profile-cover__about-label {
    font-weight: 700;
    color: #1f1f1f;
}

.profile-cover__about-text {
    color: #1f1f1f;
}

.profile-cover__about-text--empty {
    opacity: 0.55;
}


.profile-cover__services {
    width: 100%;
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    text-align: left;
}

.profile-cover__services-line {
    display: block;
    width: 100%;
    line-height: 1.6;
    font-size: 14px;
    color: #1f1f1f;
    word-break: break-word;
}

.profile-cover__services-label {
    font-weight: 700;
    color: #1f1f1f;
}

.profile-cover__services-text {
    color: #1f1f1f;
}

.profile-cover__services-text--empty {
    opacity: 0.55;
}


.profile-cover__extra-row {
    width: 100%;
    display: flex;
    gap: 12px;
    align-items: stretch;
}

.profile-cover__city,
.profile-cover__achievements {
    height: 40px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

.profile-cover__city {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
}

.profile-cover__city-label {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    white-space: nowrap;
}

.profile-cover__city-text {
    font-size: 14px;
    color: #1f1f1f;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-cover__city-text--empty {
    opacity: 0.55;
}

.profile-cover__achievements {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.profile-cover__achievements-label {
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    white-space: nowrap;
}

.profile-cover__achievements-list {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.profile-cover__achievement-slot {
    width: 100px;
    height: 20px;
    border-radius: 8px;
    border: 1.5px dashed rgba(31, 31, 31, 0.22);
    background: rgba(255, 255, 255, 0.22);
    position: relative;
    flex: 0 0 auto;
}

.profile-cover__achievement-slot::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 8px;
    height: 8px;
    background: rgba(31, 31, 31, 0.22);
    border-radius: 999px;
    transform: translate(-50%, -50%);
}

.profile-cover__achievement-slot::after {
    display: none;
}

.profile-reviews-preview {
    width: 220px;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap: 10px;
}

.profile-reviews-preview__head {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(255, 122, 61, 0.10);
    font-family: 'Manrope', 'Inter', Arial, sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: #1f1f1f;
}

.profile-reviews-preview__viewport {
    position: relative;
    height: auto;
    overflow: visible;
    padding: 0;
}

.profile-reviews-preview__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-reviews-preview__card {
    width: 100%;
    min-height: auto;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid rgba(31, 31, 31, 0.10);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
    padding: 10px 12px;
    overflow: hidden;
}

.profile-reviews-preview__author {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    color: #1f1f1f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-reviews-preview__rating {
    margin-top: 4px;
    height: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
}

.profile-reviews-preview__topic {
    margin-top: 2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    color: #ff7a00;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-reviews-preview__divider {
    margin-top: 8px;
    height: 1px;
    background: rgba(31, 31, 31, 0.10);
}

.profile-reviews-preview__text-wrap {
    position: relative;
    margin-top: 8px;
    max-height: 92px;
    overflow: hidden;
}

.profile-reviews-preview__text {
    font-size: 11px;
    line-height: 1.35;
    color: #1f1f1f;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.profile-reviews-preview__text-wrap::after {
    display: none;
}

.profile-reviews-preview__photos {
    margin-top: 8px;
    display: flex;
    gap: 6px;
}

.profile-reviews-preview__photo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    overflow: hidden;
    background: #f3f4f8;
    flex: 0 0 auto;
}

.profile-reviews-preview__photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.profile-reviews-preview__fade {
    display: none;
}

.profile-reviews-preview__open-btn {
    height: 42px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(90deg, #ff7a3d 0%, #ff5e2f 100%);
    box-shadow: 0 10px 24px rgba(255, 122, 61, 0.22);
}

.profile-reviews-preview__empty {
    min-height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 14px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: rgba(31, 31, 31, 0.46);
}

.review-hover-card {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.review-hover-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}

.review-author-popover {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    pointer-events: none;
    display: none;
    opacity: 0;
    transform: translate(14px, 14px) scale(0.96);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.review-author-popover--visible {
    display: block;
    opacity: 1;
    transform: translate(14px, 14px) scale(1);
}

.review-author-popover__inner {
    min-width: 240px;
    max-width: 280px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(31, 31, 31, 0.08);
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.14);
}

.review-author-popover__avatar {
    width: 42px;
    aspect-ratio: 3 / 4;
    min-width: 42px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 122, 61, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow:
        0 8px 18px rgba(31, 31, 31, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    color: #ff7a00;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    user-select: none;
}

.review-author-popover__avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.review-author-popover__meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-author-popover__name {
    font-size: 14px;
    font-weight: 800;
    color: #1f1f1f;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-author-popover__sub {
    font-size: 12px;
    font-weight: 600;
    color: rgba(31, 31, 31, 0.62);
    line-height: 1.25;
}

.review-hover-card {
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.review-hover-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
}


.profile-cover__gallery {
    width: 100%;
    max-width: 700px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    overflow: visible;

    display: flex;
    flex-direction: column;
}

/* верхняя часть с текстом */
.profile-cover__gallery-header {
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    border-bottom: 1px solid rgba(31, 31, 31, 0.12);
}

/* квадратная зона */
.profile-cover__gallery-body {
    width: 100%;
    aspect-ratio: 1 / 1; /* 🔥 ключ — делает квадрат */
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.15);
}


.gallery-free {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-free__item {
    position: absolute;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(255,255,255,0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.30);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}


.gallery-free__item--1 {
    width: 55%;
    aspect-ratio: 55 / 20;
    left: 2%;
    top: 2%;
}

.gallery-free__item--2 {
    width: 39%;
    aspect-ratio: 39 / 20;
    left: 59%;
    top: 2%;
}

.gallery-free__item--3 {
    height: 36%;
    aspect-ratio: 25 / 36;
    left: 2%;
    top: 24%;
}

.gallery-free__item--4 {
    width: 25%;
    aspect-ratio: 25 / 36;
    left: 2%;
    bottom: 2%;
}

/* Центр */
.gallery-free__item--5 {
    width: 36%;
    aspect-ratio: 36 / 41;
    left: 29%;
    top: 24%;
}

.gallery-free__item--6 {
    width: 31%;
    aspect-ratio: 31 / 31;
    right: 2%;
    bottom: 2%;
}

.gallery-free__item--7 {
    height: 41%;
    aspect-ratio: 31 / 41;
    left: 67%;
    top: 24%;
}

.gallery-free__item--8 {
    width: 36%;
    aspect-ratio: 36 / 31;
    left: 29%;
    bottom: 2%;
}


.gallery-free__item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.gallery-free__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(31, 31, 31, 0.26);
    background: rgba(255, 255, 255, 0.10);
}

.gallery-free__placeholder svg {
    width: 34%;
    height: 34%;
    max-width: 42px;
    max-height: 42px;
}

.force-repaint {
    opacity: 0.9999;
}

.menu-animating .profile-cover__about,
.menu-animating .profile-cover__services,
.menu-animating .profile-cover__city,
.menu-animating .profile-cover__achievements,
.menu-animating .profile-cover__gallery,
.menu-animating .gallery-free__item,
.menu-animating .profile-avatar,
.menu-animating .profile-avatar__placeholder-circle,
.menu-animating .profile-cover__name,
.menu-animating .profile-cover__status {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.profile-avatar-rating__scale {
    display: inline-block;
    transform: scale(0.8);
    transform-origin: center;
}

.profile-reviews-preview--mobile {
    display: none;
}

@media (max-width: 860px) {

    .profile-cover-shell {
        padding: 0 12px;
        margin-top: 12px;
    }

    .profile-cover {
        min-height: calc(100vh - 67px);
        border-radius: 24px 24px 0 0;
    }

    .profile-cover__art--desktop {
        display: none;
    }

    .profile-cover__art--mobile {
        display: block;
    }

    .profile-cover__identity {
        top: 2vw;
        left: 0;
        width: 96%;
        margin: 0 auto;
        gap: 8px;
    }

    .profile-cover__avatar-wrap {
        width: fit-content;
        flex: 0 0 auto;
        align-items: flex-start;
    }

    .profile-avatar-rating {
        width: auto;
    }

    .profile-cover__content {
        margin-left: 0;
    }

    .profile-avatar {
        width: 30vw;
        aspect-ratio: 3 / 4;
    }

    .profile-avatar__placeholder-circle {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }

    .profile-avatar-rating {
        margin-top: 6px;
        transform: scale(0.72);
        transform-origin: top left;
    }

    .profile-cover__content {
        margin-left: 14px;
        flex: 1;
        min-width: 0;
    }

    .profile-cover__name {
        padding: 5px 12px;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.4;
        max-width: 37vw;
        min-width: 0;

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;

        overflow: hidden;
        text-overflow: ellipsis;
        white-space: normal;
    }

    .profile-cover__status {
        margin-top: 4px;
        font-size: 10px;
        line-height: 1.4;
        min-height: 16px;
        padding: 3 4px;
        font-weight: 650;
        line-height: 1.4;
    }

    .profile-avatar-rating__scale {
        transform: scale(0.58);
        transform-origin: top left;
    }

    .profile-cover__identity {
        top: 2vw;
        left: 0;
        width: 96%;
        margin: 0 auto;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 10px 8px;
    }

    .profile-cover__avatar-wrap {
        width: 30vw;
        flex: 0 0 30vw;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .profile-avatar {
        width: 30vw;
        aspect-ratio: 3 / 4;
    }

    .profile-avatar-rating__scale {
        margin-top: 6px;
        transform: scale(0.58);
        transform-origin: top center;
    }

    /* главное */
    .profile-cover__content {
        display: contents;
    }

    .profile-cover__meta {
        flex: 1 1 0;
        min-width: 0;
        gap: 6px;
    }

    .profile-cover__about,
    .profile-cover__services,
    .profile-cover__gallery,
    .profile-reviews-preview--mobile {
        width: 100%;
        max-width: 100%;
    }

    .profile-cover__extra-row {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .profile-cover__city,
    .profile-cover__achievements {
        width: 100%;
    }

    /* отзывы */
    .profile-reviews-preview--desktop {
        display: none;
    }

    .profile-reviews-preview--mobile {
        display: flex;
        width: 100%;
        margin-top: 0;
    }

    .profile-cover__art--desktop {
        display: none;
    }

    .profile-cover__art--mobile {
        display: block;
    }

    .profile-cover__achievement-slot {
        width: 18vw;
    }
}



/* Для QR кода */
.profile-review-qr {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 6;
}

.profile-review-qr__trigger {
    width: 90px;
    height: 90px;
    padding: 8px;
    border: none;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-review-qr__trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
}

.profile-review-qr__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 14px;
}

.review-qr-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
}

.review-qr-modal--open {
    display: block;
}

.review-qr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 18, 24, 0.48);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.review-qr-modal__dialog {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(92vw, 560px);
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 28px;
    padding: 26px 22px 22px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.review-qr-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 999px;
    background: rgba(31, 31, 31, 0.06);
    color: #1f1f1f;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.review-qr-modal__title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1f1f1f;
}

.review-qr-modal__qr-wrap {
    width: min(78vw, 360px);
    margin: 18px auto 0;
    padding: 14px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.review-qr-modal__img {
    width: 100%;
    display: block;
    object-fit: contain;
    border-radius: 18px;
}

.review-qr-modal__link-row {
    margin-top: 18px;
    display: flex;
    align-items: stretch;
    gap: 10px;
}

.review-qr-modal__link {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border-radius: 16px;
    background: #f6f7fb;
    color: #1f1f1f;
    text-decoration: none;
    display: flex;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.review-qr-modal__copy-btn,
.review-qr-modal__share-btn {
    border: none;
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.review-qr-modal__copy-btn:hover,
.review-qr-modal__share-btn:hover {
    transform: translateY(-1px);
}

.review-qr-modal__copy-btn {
    flex: 0 0 auto;
    padding: 0 18px;
    border-radius: 16px;
    background: linear-gradient(90deg, #ff7a3d 0%, #ff5e2f 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(255, 122, 61, 0.24);
}

.review-qr-modal__share-btn {
    width: 100%;
    height: 48px;
    margin-top: 14px;
    border-radius: 16px;
    background: #f3f4f8;
    color: #1f1f1f;
}

@media (max-width: 860px) {
    .profile-review-qr {
        top: 2vw;
        right: 2vw;
    }

    .profile-review-qr__trigger {
        width: 84px;
        height: 84px;
        padding: 6px;
        border-radius: 18px;
    }

    .review-qr-modal__dialog {
        width: min(94vw, 420px);
        padding: 22px 16px 16px;
        border-radius: 24px;
    }

    .review-qr-modal__title {
        font-size: 20px;
    }

    .review-qr-modal__qr-wrap {
        width: min(82vw, 300px);
        padding: 10px;
        border-radius: 20px;
    }

    .review-qr-modal__link-row {
        flex-direction: column;
    }

    .review-qr-modal__copy-btn,
    .review-qr-modal__share-btn,
    .review-qr-modal__link {
        height: 46px;
    }
}

@media (max-width: 860px) {
    .profile-reviews-preview--mobile {
        display: flex;
        width: 100%;
        margin-top: 0;
    }

    .profile-reviews-preview__list {
        gap: 10px;
    }

    .profile-reviews-preview__card {
        padding: 12px;
    }

    .profile-reviews-preview__text-wrap {
        max-height: 110px;
    }

    .profile-reviews-preview__photo {
        width: 44px;
        height: 44px;
    }
}

.profile-reviews-preview__photo-link {
    display: block;
    width: 100%;
    height: 100%;
}

.profile-reviews-preview__photo-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.profile-cover__message-button {
    width: fit-content;
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 10px;
    padding: 0 14px;
    color: #fff;
    background: linear-gradient(135deg, #ff7a00, #ff4f87);
    border-radius: 11px;
    box-shadow: 0 8px 20px rgba(255, 79, 135, 0.18);
    font-family: var(--actions-font, inherit);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.profile-cover__message-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 11px 24px rgba(255, 79, 135, 0.25);
}

.profile-cover__message-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
