/* Public specialist profile — mobile-first, минимальные отступы */

.lg-page-profile {
    background: var(--lg-bg);
}

.lg-page-profile .lg-header__inner {
    padding: 10px 12px;
}

.lg-page-profile .lg-main.lg-pf-main {
    padding: 8px 0 calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: none;
    width: 100%;
}

.lg-pf-wrap {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Toolbar: назад + поделиться */
.lg-pf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 0 8px;
}

.lg-pf-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px 6px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-muted);
    text-decoration: none;
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    min-width: 0;
}

.lg-pf-back:hover {
    color: var(--lg-blue);
}

.lg-pf-back i {
    font-size: 11px;
    opacity: .8;
}

.lg-pf-toolbar__share {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: var(--lg-surface);
    color: var(--lg-muted);
    cursor: pointer;
    font-size: 15px;
}

.lg-pf-toolbar__share:active {
    transform: scale(.96);
}

.lg-pf-toolbar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.lg-pf-toolbar__share--invite {
    color: var(--lg-emerald);
}

/* Card */
.lg-pf-card {
    background: var(--lg-surface);
    border: 1px solid var(--lg-border);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(15, 45, 82, .05);
}

.lg-pf-persona-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0;
    padding: 10px 14px;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--lg-muted, #5a6b7d);
    background: color-mix(in srgb, var(--lg-blue, #0f2d52) 5%, #fff);
    border-bottom: 1px solid var(--lg-border, #d7dee8);
}

.lg-pf-persona-note i {
    color: var(--lg-emerald, #059669);
}

.lg-pf-persona-note a {
    margin-left: auto;
    font-weight: 650;
    color: var(--lg-blue, #0f2d52);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.lg-pf-persona-note a:hover {
    color: var(--lg-emerald, #059669);
}

/* Hero: аватар слева, текст справа */
.lg-pf-hero {
    position: relative;
    padding: 14px 12px;
    background: var(--lg-surface);
    border-bottom: 1px solid var(--lg-border);
}

.lg-pf-hero__corner {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lg-pf-hero__main {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lg-pf-hero__views {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 12px;
    margin-left: auto;
    border-radius: 12px;
    background: rgba(15, 45, 82, .04);
    border: 1px solid rgba(15, 45, 82, .1);
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-muted);
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}

.lg-pf-hero__views:hover {
    background: rgba(15, 45, 82, .07);
    border-color: rgba(15, 45, 82, .16);
    color: var(--lg-blue);
}

.lg-pf-hero__views:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 1px;
}

.lg-pf-hero__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 999px;
    background: rgba(15, 45, 82, .05);
    border: 1px solid var(--lg-border);
    color: var(--lg-muted);
    line-height: 1;
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s, border-color .15s, color .15s;
    flex-shrink: 0;
}

.lg-pf-hero__share:hover {
    background: rgba(15, 45, 82, .08);
    border-color: rgba(15, 45, 82, .12);
    color: var(--lg-blue);
}

.lg-pf-hero__share:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 1px;
}

.lg-pf-hero__share--invite {
    color: var(--lg-emerald);
}

.lg-pf-hero__views i {
    font-size: 13px;
    opacity: .8;
}

.lg-pf-hero__ava-col {
    flex-shrink: 0;
    width: 76px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lg-pf-hero__ava-wrap {
    position: relative;
    padding: 2px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--lg-emerald), #34d399);
    box-shadow: 0 4px 12px rgba(5, 150, 105, .15);
}

.lg-pf-hero__ava-wrap .lg-presence-dot {
    right: 4px;
    bottom: 4px;
}

.lg-pf-hero__ava-btn {
    appearance: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    cursor: pointer;
    border-radius: 50%;
    display: block;
    position: relative;
    outline: none;
}

.lg-pf-hero__ava-btn:focus-visible {
    box-shadow: 0 0 0 3px var(--lg-emerald);
}

.lg-pf-hero__ava-zoom {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(15, 45, 82, 0.45);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.lg-pf-hero__ava-btn:hover .lg-pf-hero__ava-zoom,
.lg-pf-hero__ava-btn:focus-visible .lg-pf-hero__ava-zoom {
    opacity: 1;
}

.lg-pf-hero__ava-btn:hover .lg-pf-hero__ava {
    transform: scale(1.02);
}

.lg-pf-hero__ava {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--lg-bg);
    border: 2px solid #fff;
    transition: transform 0.2s ease;
}

.lg-pf-hero__meta {
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 1px;
    padding-right: 42px;
    position: relative;
}

.lg-pf-hero__meta--partner {
    padding-right: 48px;
}

.lg-pf-hero__name-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    padding-right: 72px;
}

.lg-pf-partner-stage {
    position: absolute;
    top: -8px;
    right: 0;
    width: 80px;
    height: 80px;
    pointer-events: none;
    z-index: 3;
    transform-origin: top right;
    transition: transform 0.72s cubic-bezier(0.33, 1, 0.68, 1), opacity 0.5s ease 0.08s;
}

.lg-pf-partner-stage.is-collapsing {
    transform: translate(-18px, 34px) scale(0.14);
    opacity: 0;
}

.lg-pf-partner-lottie {
    width: 100%;
    height: 100%;
}

.lg-pf-partner-badge {
    display: none;
    align-self: flex-start;
    max-width: 100%;
    margin-top: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.lg-pf-partner-badge:not([hidden]) {
    display: inline-flex;
}

.lg-pf-partner-badge:focus-visible .lg-pf-partner-badge__frame {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 2px;
}

.lg-pf-partner-badge:active .lg-pf-partner-badge__frame {
    transform: scale(0.98);
}

.lg-pf-partner-badge__frame {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lg-pf-partner-badge:hover .lg-pf-partner-badge__frame {
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.22), 0 0 0 1px rgba(15, 45, 82, 0.12);
}

.lg-pf-partner-badge__frame {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px 5px 9px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lg-emerald) 0%, var(--lg-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 45, 82, 0.2);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.3;
    white-space: nowrap;
}

.lg-pf-partner-badge__logo {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.lg-pf-partner-badge__text {
    text-shadow: 0 1px 0 rgba(15, 45, 82, 0.25);
}

.lg-pf-partner-badge.is-revealed {
    animation: lg-pf-partner-badge-in 0.42s ease forwards;
}

@keyframes lg-pf-partner-badge-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-pf-partner-stage {
        display: none !important;
    }

    .lg-pf-partner-badge.is-revealed {
        animation: none;
    }
}

/* Partner badge modal */
.lg-pf-modal--partner {
    z-index: 520;
}

.lg-pf-modal--partner .lg-pf-modal__panel {
    max-width: 380px;
    overflow: hidden;
    border: 1px solid rgba(15, 45, 82, 0.1);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 24px 56px rgba(15, 45, 82, 0.2);
    background: var(--lg-surface);
}

.lg-pf-partner-modal__panel {
    position: relative;
    padding: 0;
}

.lg-pf-partner-modal__accent {
    height: 4px;
    background: linear-gradient(90deg, var(--lg-emerald) 0%, var(--lg-blue) 100%);
}

.lg-pf-partner-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid rgba(15, 45, 82, 0.1);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--lg-muted);
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(15, 45, 82, 0.08);
    -webkit-tap-highlight-color: transparent;
}

.lg-pf-partner-modal__close:hover {
    color: var(--lg-blue);
    border-color: rgba(5, 150, 105, 0.22);
}

.lg-pf-partner-modal__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 18px 18px 20px;
    text-align: center;
}

.lg-pf-partner-modal__mark {
    margin-bottom: 12px;
}

.lg-pf-partner-modal__mark-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--lg-emerald) 0%, var(--lg-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow:
        0 0 0 1px rgba(15, 45, 82, 0.16),
        0 8px 20px rgba(5, 150, 105, 0.22);
}

.lg-pf-partner-modal__mark-logo {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.lg-pf-partner-modal__plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    max-width: 100%;
    margin-bottom: 10px;
    padding: 7px 13px 7px 11px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--lg-emerald) 0%, var(--lg-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 0 0 1px rgba(15, 45, 82, 0.2);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.lg-pf-partner-modal__plate-logo {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    filter: brightness(0) invert(1);
}

.lg-pf-partner-modal__plate-text {
    text-shadow: 0 1px 0 rgba(15, 45, 82, 0.25);
    text-wrap: balance;
}

.lg-pf-partner-modal__name {
    margin: 0 0 14px;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.28;
    color: var(--lg-blue);
    overflow-wrap: break-word;
}

.lg-pf-partner-modal__card {
    width: 100%;
    margin-bottom: 16px;
    padding: 12px 12px 10px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(5, 150, 105, 0.05) 0%, rgba(15, 45, 82, 0.03) 100%);
    border: 1px solid rgba(15, 45, 82, 0.08);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.lg-pf-partner-modal__specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-bottom: 8px;
}

.lg-pf-partner-modal__spec {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(5, 150, 105, 0.14);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--lg-emerald);
}

.lg-pf-partner-modal__spec i {
    font-size: 10px;
    opacity: 0.85;
}

.lg-pf-partner-modal__city {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-muted);
}

.lg-pf-partner-modal__city i {
    color: var(--lg-emerald);
    font-size: 12px;
}

.lg-pf-partner-modal__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.lg-pf-partner-modal__wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--lg-emerald) 0%, #047857 55%, var(--lg-blue) 100%);
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        0 0 0 1px rgba(15, 45, 82, 0.14),
        0 10px 24px rgba(5, 150, 105, 0.24);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.lg-pf-partner-modal__wa:hover {
    transform: translateY(-1px);
    box-shadow:
        0 0 0 1px rgba(15, 45, 82, 0.14),
        0 14px 28px rgba(5, 150, 105, 0.28);
}

.lg-pf-partner-modal__wa:active {
    transform: translateY(0);
}

.lg-pf-partner-modal__wa i {
    font-size: 20px;
}

.lg-pf-partner-modal__become {
    display: inline-block;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--lg-muted);
    text-decoration: none;
    opacity: 0.65;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.lg-pf-partner-modal__become:hover {
    opacity: 1;
    color: var(--lg-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 480px) {
    .lg-pf-modal--partner.lg-pf-modal--center {
        align-items: flex-end;
        padding: 0;
    }

    .lg-pf-modal--partner.lg-pf-modal--center .lg-pf-modal__panel {
        max-width: none;
        width: 100%;
        border-radius: 18px 18px 0 0;
    }

    .lg-pf-partner-modal__body {
        padding: 16px 16px 18px;
    }
}

.lg-pf-hero:has(#pfInviteParentBtn) .lg-pf-hero__meta {
    padding-right: 80px;
}

.lg-pf-hero__name {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--lg-blue);
    line-height: 1.25;
    letter-spacing: -.02em;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.lg-pf-hero__name-btn {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    letter-spacing: inherit;
    line-height: inherit;
    text-align: left;
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: normal;
    transition: color .15s ease;
}

.lg-pf-hero__name-btn:hover {
    color: var(--lg-emerald);
}

.lg-pf-hero__name-btn:focus-visible {
    outline: 2px solid var(--lg-emerald);
    outline-offset: 3px;
    border-radius: 6px;
}

.lg-pf-hero__name-text {
    display: inline-block;
    width: 150px;
}

.lg-pf-hero__name-btn.is-expanded .lg-pf-hero__name-text {
    color: inherit;
}

.lg-pf-hero__role {
    margin: 0;
}

.lg-pf-hero__role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5, 150, 105, .1);
    border: 1px solid rgba(5, 150, 105, .16);
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-emerald);
    line-height: 1.35;
    max-width: 100%;
    white-space: normal;
    text-wrap: balance;
}

.lg-pf-hero__role-badge i {
    font-size: 10px;
    flex-shrink: 0;
}

.lg-pf-hero__specialty-badges[data-lg-chip-pack] {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    align-content: flex-start;
    width: 100%;
}

.lg-pf-hero__specialty-badges[data-lg-chip-pack].is-packed {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 8px;
}

.lg-pf-hero__specialty-badges[data-lg-chip-pack] .lg-pf-hero__role-badge {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    white-space: nowrap;
    text-wrap: nowrap;
}

.lg-pf-hero__city {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    font-size: 12px;
    color: var(--lg-muted);
}

.lg-pf-hero__city i {
    font-size: 11px;
    opacity: .55;
}

.lg-pf-hero__facts {
    list-style: none;
    margin: 2px 0 0;
    padding: 0;
    width: 100%;
    display: grid;
    gap: 4px;
}

.lg-pf-hero__fact {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 12px;
    line-height: 1.35;
    color: var(--lg-muted);
    white-space: nowrap;
}

.lg-pf-hero__fact i {
    flex-shrink: 0;
    font-size: 11px;
    opacity: .6;
}

.lg-pf-hero__social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
}

.lg-pf-hero__social-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.lg-pf-hero__social--views-only {
    justify-content: flex-end;
}

.lg-pf-hero__social-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(5, 150, 105, .35);
    border-radius: 12px;
    background: rgba(5, 150, 105, .06);
    text-decoration: none;
    color: inherit;
    transition: border-color .2s ease, background-color .2s ease, transform .15s ease;
}

.lg-pf-hero__social-btn:hover,
.lg-pf-hero__social-btn:focus-visible {
    border-color: rgba(15, 45, 82, .28);
    background: var(--lg-surface);
    outline: none;
}

.lg-pf-hero__social-btn:focus-visible {
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .28);
}

.lg-pf-hero__social-btn:active {
    transform: scale(.96);
}

.lg-pf-hero__social-icon {
    font-size: 18px;
    line-height: 1;
}

.cb-social-icon--instagram { color: #E4405F; }
.cb-social-icon--tiktok { color: #000000; }
.cb-social-icon--telegram { color: #26A5E4; }

.lg-pf-rating--under-ava[hidden] {
    display: none !important;
}

.lg-pf-rating {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.lg-pf-rating--under-ava {
    justify-content: center;
    width: 100%;
    gap: 4px;
}

.lg-pf-rating--under-ava .lg-pf-rating__score,
.lg-pf-rating--under-ava .lg-pf-rating__empty {
    font-size: 11px;
    padding: 3px 8px;
}

.lg-pf-rating--under-ava .lg-pf-rating__count {
    font-size: 11px;
    width: 100%;
    text-align: center;
}

.lg-pf-rating__score {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 13px;
    font-weight: 800;
}

.lg-pf-rating__score i {
    color: #f59e0b;
    font-size: 11px;
}

.lg-pf-rating__count,
.lg-pf-rating__empty {
    font-size: 12px;
    color: var(--lg-muted);
    font-weight: 500;
}

.lg-pf-rating__empty {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.lg-pf-hero__actions {
    margin-top: 12px;
    width: 100%;
}

.lg-pf-hero__actions .lg-pf-action--wa,
.lg-pf-hero__actions .lg-pf-action--msg {
    min-height: 40px;
    padding: 9px 14px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}

.lg-pf-hero__actions .lg-pf-action--wa span,
.lg-pf-hero__actions .lg-pf-action--msg span {
    min-width: 0;
}

/* Buttons */
.lg-pf-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 11px;
    border: 1px solid var(--lg-border);
    background: #fff;
    color: var(--lg-blue);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.lg-pf-action--edit {
    background: var(--lg-blue);
    border-color: var(--lg-blue);
    color: #fff;
}

.lg-pf-action--edit:hover {
    background: var(--lg-navy, #0f2d52);
    color: #fff;
}

.lg-pf-action--edit:focus-visible {
    outline: 3px solid rgba(5, 150, 105, .32);
    outline-offset: 2px;
}

.lg-pf-action--edit:active {
    transform: translateY(1px);
}

.lg-pf-action--review {
    background: linear-gradient(135deg, var(--lg-emerald), #10b981);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, .22);
}

.lg-pf-action--msg {
    background: var(--lg-emerald, #059669);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(5, 150, 105, .22);
}

.lg-pf-action--msg:hover {
    background: #047857;
}

.lg-pf-action--msg i {
    font-size: 16px;
}

.lg-pf-action--wa {
    background: linear-gradient(135deg, #25d366, #128c7e);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(37, 211, 102, .22);
}

.lg-pf-action--wa i {
    font-size: 17px;
}

.lg-pf-action--book {
    background: var(--lg-navy, #0f2d52);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 3px 10px rgba(15, 45, 82, .18);
}

.lg-pf-hero__role-badge--format {
    background: rgba(5, 150, 105, .1);
    color: var(--lg-emerald, #059669);
    border-color: rgba(5, 150, 105, .2);
}

.lg-pf-hero__role-badge--lang {
    background: rgba(15, 45, 82, .06);
    color: var(--lg-blue, #0f2d52);
    border-color: rgba(15, 45, 82, .12);
}

.lg-pf-modal__icon--lang {
    background: rgba(15, 45, 82, .08);
    color: var(--lg-blue);
}

.lg-pf-lang-mismatch__list {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.lg-pf-lang-mismatch__list li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(15, 45, 82, .06);
    color: var(--lg-blue);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.lg-pf-lang-mismatch__list li i {
    color: var(--lg-emerald);
    font-size: 12px;
}

.lg-pf-lang-mismatch__ok {
    width: 100%;
    margin-top: 6px;
    min-height: 48px;
}

.lg-pf-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-booking-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.pf-booking-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px 0;
    font-size: 14px;
}

.pf-booking-modal.lg-spec-modal {
    z-index: 12100;
}

.pf-booking-form__field select,
.pf-booking-form__field input[type="text"],
.pf-booking-form__field input[type="tel"],
.pf-booking-form__field input[type="date"],
.pf-booking-form__field input[type="time"],
.pf-booking-form__field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    font: inherit;
    color: var(--lg-text);
    background: #fff;
}

.pf-booking-form__contact {
    display: grid;
    gap: 12px;
}

@media (min-width: 520px) {
    .pf-booking-form__contact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pf-booking-form__field input[type="date"],
.pf-booking-form__field input[type="time"] {
    font-size: 16px;
    font-weight: 600;
    -webkit-appearance: auto;
    appearance: auto;
    color-scheme: light;
}

.pf-booking-form__field .lg-schedule-datetime {
    min-height: 44px;
    border-radius: 12px;
    box-shadow: inset 0 1px 2px rgba(15, 45, 82, .04);
}

.pf-booking-date-display {
    margin: -4px 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--lg-blue);
}

.pf-booking-form__field .lg-schedule-datetime:focus {
    outline: none;
    border-color: var(--lg-emerald, #059669);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, .12);
}

.pf-booking-modal .lg-btn.is-loading {
    pointer-events: none;
    opacity: .88;
}

.pf-booking-slots {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pf-booking-slots__empty {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f4f7fb;
    font-size: 14px;
    line-height: 1.45;
}

.pf-booking-slots__empty-title {
    margin: 0;
    font-weight: 700;
    color: var(--lg-blue);
}

.pf-booking-slots__details {
    margin-top: 2px;
}

.pf-booking-slots__details-summary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-blue);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.pf-booking-slots__details-summary::-webkit-details-marker {
    display: none;
}

.pf-booking-slots__details-summary::before {
    content: '';
    width: 0;
    height: 0;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 5px solid currentColor;
    transition: transform .15s ease;
}

.pf-booking-slots__details[open] .pf-booking-slots__details-summary::before {
    transform: rotate(90deg);
}

.pf-booking-slots__details-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(15, 45, 82, .08);
}

.pf-booking-slots__hours,
.pf-booking-slots__next {
    margin: 0;
}

.pf-booking-slots__schedule-title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--lg-blue);
}

.pf-booking-slots__schedule-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pf-booking-slots__schedule-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(15, 45, 82, .06);
    font-size: 13px;
}

.pf-booking-slots__schedule-row:last-child {
    border-bottom: none;
}

.pf-booking-slots__schedule-row.is-off span:last-child {
    color: #64748b;
}

.pf-booking-next-btn {
    align-self: flex-start;
    margin-top: 2px;
}

.pf-booking-slot {
    min-width: 72px;
    padding: 8px 12px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.pf-booking-slot.is-selected {
    border-color: var(--lg-emerald, #059669);
    background: rgba(5, 150, 105, .08);
    color: var(--lg-emerald, #059669);
    font-weight: 600;
}

.pf-booking-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.pf-booking-success__title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--lg-emerald, #059669);
}

/* Sections */
.lg-pf-section {
    padding: 12px;
    border-top: 1px solid var(--lg-border);
}

.lg-pf-section h2 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 800;
    color: var(--lg-blue);
}

.lg-pf-section h2 i {
    color: var(--lg-emerald);
    font-size: 13px;
}

.lg-pf-section h2 + h2 {
    margin-top: 18px;
}

.lg-pf-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--lg-text);
}

/* Reviews */
.lg-pf-section--reviews {
    background: var(--lg-bg);
}

.lg-pf-section__head {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
}

.lg-pf-section__head h2 {
    margin: 0;
}

.lg-pf-review-callout {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    font-size: 12px;
    line-height: 1.45;
}

.lg-pf-review-callout > i {
    margin-top: 2px;
    flex-shrink: 0;
}

.lg-pf-review-callout p {
    margin: 0;
}

.lg-pf-reviews {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-pf-reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 20px 12px;
    text-align: center;
    border-radius: 12px;
    border: 1px dashed var(--lg-border);
    background: var(--lg-surface);
}

.lg-pf-reviews-empty i {
    font-size: 24px;
    color: var(--lg-border);
}

.lg-pf-reviews-empty p {
    margin: 0;
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-pf-review {
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--lg-border);
    background: var(--lg-surface);
}

.lg-pf-review__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    margin-bottom: 8px;
}

.lg-pf-review__head strong {
    font-size: 13px;
    color: var(--lg-blue);
}

.lg-pf-review__stars {
    color: #f59e0b;
    font-size: 11px;
}

.lg-pf-star--off {
    opacity: .22;
}

.lg-pf-review__date {
    margin-left: auto;
    font-size: 11px;
    color: var(--lg-muted);
}

.lg-pf-review__text {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
}

.lg-pf-review__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.lg-pf-review__btn {
    min-height: 40px;
    padding: 8px 14px;
    font-size: 14px;
}

.lg-pf-review__btn--delete {
    color: #b91c1c;
}

.lg-pf-review__btn--delete:hover,
.lg-pf-review__btn--delete:focus-visible {
    color: #991b1b;
    background: #fef2f2;
    outline: none;
}

.lg-pf-review__own-status {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.lg-pf-review__own-status--pending {
    background: #fff7ed;
    color: #c2410c;
}

.lg-pf-review__own-status--rejected {
    background: #fef2f2;
    color: #b91c1c;
}

.lg-pf-review--own {
    border-color: #a7f3d0;
}

/* Footer on profile */
.lg-page-profile .lg-footer {
    padding: 16px 10px calc(16px + env(safe-area-inset-bottom, 0px));
    font-size: 12px;
}

/* Modals */
.lg-pf-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
}

.lg-pf-modal.is-visible {
    display: flex !important;
}

.lg-pf-modal[hidden]:not(.is-visible),
.lg-page-profile .cb-modal[hidden]:not(.is-visible) {
    display: none !important;
}

.lg-page-profile .cb-modal.is-visible {
    display: flex !important;
}

.lg-pf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, .5);
    backdrop-filter: blur(4px);
}

.lg-pf-modal__panel {
    position: relative;
    width: 100%;
    max-width: 440px;
    max-height: min(92vh, 720px);
    overflow: auto;
    background: var(--lg-surface);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 45, 82, .16);
}

.lg-pf-modal__handle {
    width: 36px;
    height: 4px;
    margin: 8px auto 0;
    border-radius: 999px;
    background: #d1d5db;
}

.lg-pf-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lg-border);
    position: sticky;
    top: 0;
    background: var(--lg-surface);
    z-index: 1;
}

.lg-pf-modal__head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--lg-blue);
}

.lg-pf-modal__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    font-size: 13px;
}

.lg-pf-modal__icon--review {
    background: #fffbeb;
    color: #f59e0b;
}

.lg-pf-modal__icon--share {
    background: rgba(5, 150, 105, .1);
    color: var(--lg-emerald);
}

.lg-pf-modal__icon--views {
    background: rgba(15, 45, 82, .08);
    color: var(--lg-blue);
}

.lg-pf-modal--center {
    align-items: center;
    padding: 16px;
}

.lg-pf-modal--center .lg-pf-modal__panel {
    border-radius: 18px;
    max-width: 360px;
}

.lg-pf-modal--center .lg-pf-modal__handle {
    display: none;
}

.lg-pf-modal__body--info {
    text-align: center;
}

.lg-pf-info-count {
    margin: 0 0 12px;
    font-size: 28px;
    font-weight: 800;
    color: var(--lg-blue);
    line-height: 1.2;
}

.lg-pf-info-text {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.55;
    color: var(--lg-text);
}

.lg-pf-info-note {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--lg-muted);
}

.lg-pf-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    background: var(--lg-bg);
    color: var(--lg-muted);
    cursor: pointer;
    font-size: 15px;
}

/* Photo View Lightbox Modal */
.lg-pf-modal--photo {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-pf-modal--photo.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    display: flex !important;
}

.lg-pf-modal--photo[hidden]:not(.is-visible) {
    display: none !important;
}

.lg-pf-modal--photo .lg-pf-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 26, 47, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

.lg-pf-photo-modal__dialog {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 520px;
    width: 100%;
    transform: scale(0.92);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.lg-pf-modal--photo.is-visible .lg-pf-photo-modal__dialog {
    transform: scale(1);
}

.lg-pf-photo-modal__close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
    z-index: 10;
}

.lg-pf-photo-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
    color: #fff;
}

.lg-pf-photo-modal__close:focus-visible {
    outline: 2px solid var(--lg-emerald);
}

.lg-pf-photo-modal__content {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.lg-pf-photo-modal__img-wrap {
    width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1d33;
    overflow: hidden;
}

.lg-pf-photo-modal__img {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}

.lg-pf-photo-modal__caption {
    width: 100%;
    padding: 14px 18px;
    background: #ffffff;
    text-align: center;
    border-top: 1px solid var(--lg-border);
}

.lg-pf-photo-modal__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--lg-blue);
    line-height: 1.3;
}

.lg-pf-photo-modal__role {
    margin: 4px 0 0;
    font-size: 13px;
    color: var(--lg-muted);
    line-height: 1.3;
}

@media (max-width: 560px) {
    .lg-pf-modal--photo {
        padding: 16px;
    }
    .lg-pf-photo-modal__close {
        top: -44px;
        right: 0;
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
    .lg-pf-photo-modal__img-wrap {
        max-height: 65vh;
    }
}


.lg-pf-modal__body {
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lg-pf-modal__body .lg-field {
    margin-bottom: 14px;
}

.lg-pf-modal__body label,
.lg-pf-stars-label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--lg-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.lg-pf-modal__body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.lg-pf-modal__body textarea,
.lg-pf-modal__body select {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: var(--lg-bg);
    color: var(--lg-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.35;
    touch-action: manipulation;
}

.lg-pf-modal__body textarea {
    resize: vertical;
    min-height: 96px;
}

.lg-pf-stars-input {
    display: flex;
    gap: 6px;
}

.lg-pf-star-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    background: #fff;
    color: #d1d5db;
    cursor: pointer;
    font-size: 17px;
}

.lg-pf-star-btn.is-on,
.lg-pf-star-btn:hover {
    color: #f59e0b;
    border-color: #fcd34d;
    background: #fffbeb;
}

.lg-pf-review-lead {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(5, 150, 105, .06);
    border: 1px solid rgba(5, 150, 105, .12);
    font-size: 12px;
    line-height: 1.45;
    color: var(--lg-blue-soft);
}

.lg-pf-review-as {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--lg-bg);
    border: 1px solid var(--lg-border);
    font-size: 13px;
    color: var(--lg-muted);
}

.lg-pf-field-hint {
    margin: 5px 0 0;
    font-size: 11px;
    color: var(--lg-muted);
}

.lg-pf-form-error {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 12px;
}

.lg-pf-modal__submit {
    width: 100%;
    min-height: 46px;
}

.lg-pf-share-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--lg-bg);
    border: 1px solid var(--lg-border);
}

.lg-pf-share-preview__ava {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lg-pf-share-preview__meta {
    min-width: 0;
}

.lg-pf-share-preview__meta strong {
    display: block;
    font-size: 13px;
    color: var(--lg-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-pf-share-preview__meta span {
    display: block;
    font-size: 11px;
    color: var(--lg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-pf-share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.lg-pf-share-action {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--lg-border);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    color: var(--lg-text);
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.lg-pf-share-action__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
}

.lg-pf-share-action--wa .lg-pf-share-action__icon {
    background: rgba(37, 211, 102, .12);
    color: #25d366;
}

.lg-pf-share-action--tg .lg-pf-share-action__icon {
    background: rgba(0, 136, 204, .1);
    color: #0088cc;
}

.lg-pf-share-action--copy .lg-pf-share-action__icon {
    background: rgba(15, 45, 82, .06);
    color: var(--lg-blue);
}

.lg-pf-share-invite,
.cb-share-invite {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(5, 150, 105, .22);
    background: rgba(5, 150, 105, .08);
    color: var(--lg-emerald, #059669);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}

.lg-pf-share-invite:hover,
.cb-share-invite:hover {
    background: rgba(5, 150, 105, .12);
    border-color: rgba(5, 150, 105, .35);
}

.lg-pf-share-invite:focus-visible,
.cb-share-invite:focus-visible {
    outline: 2px solid rgba(5, 150, 105, .45);
    outline-offset: 2px;
}

.lg-pf-share-action__arrow {
    font-size: 11px;
    color: var(--lg-muted);
    opacity: .6;
}

/* Invite-parent modal (cb-* partial, без cabinet.css на profile.php) */
.lg-page-profile .cb-modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.lg-page-profile .cb-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 45, 82, .5);
    backdrop-filter: blur(4px);
}

.lg-page-profile .cb-modal__panel {
    position: relative;
    width: 100%;
    max-width: 400px;
    max-height: min(92vh, 720px);
    overflow: auto;
    background: var(--lg-surface);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -8px 32px rgba(15, 45, 82, .16);
}

.lg-page-profile .cb-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lg-border);
}

.lg-page-profile .cb-modal__head h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--lg-blue);
}

.lg-page-profile .cb-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--lg-border);
    border-radius: 10px;
    background: var(--lg-bg);
    color: var(--lg-muted);
    cursor: pointer;
    font-size: 15px;
    flex-shrink: 0;
}

.lg-page-profile .cb-modal__body--share {
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom, 0px));
}

.lg-page-profile .cb-share-link-box {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.lg-page-profile .cb-share-link-box__input {
    width: 100%;
    min-width: 0;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: #f8fafc;
    font-size: 13px;
    color: var(--lg-text);
    box-sizing: border-box;
}

.lg-page-profile .cb-share-link-box__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid var(--lg-border);
    background: #fff;
    color: var(--lg-blue);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}

.lg-page-profile .cb-share-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.lg-page-profile .cb-share-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--lg-border);
    background: var(--lg-bg);
    font-size: 14px;
    font-weight: 600;
    color: var(--lg-text);
    text-decoration: none;
    box-sizing: border-box;
}

.lg-page-profile .cb-share-action__icon {
    width: 20px;
    text-align: center;
    font-size: 17px;
    flex-shrink: 0;
}

.lg-page-profile .cb-share-action__icon--wa { color: #25d366; }
.lg-page-profile .cb-share-action__icon--tg { color: #0088cc; }

/* Desktop */
@media (min-width: 640px) {
    .lg-page-profile .lg-main.lg-pf-main {
        padding: 8px 0 calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .lg-pf-wrap {
        padding: 0 16px;
    }

    .lg-pf-toolbar {
        padding: 10px 0 10px;
    }

    .lg-pf-card {
        border-radius: 16px;
        box-shadow: 0 4px 18px rgba(15, 45, 82, .06);
    }

    .lg-pf-hero {
        padding: 16px;
    }

    .lg-pf-hero__corner {
        top: 12px;
        right: 12px;
    }

    .lg-pf-hero__name {
        font-size: 22px;
    }

    .lg-pf-hero__ava-col {
        width: 88px;
    }

    .lg-pf-hero__ava {
        width: 84px;
        height: 84px;
    }

    .lg-pf-section {
        padding: 16px;
    }

    .lg-pf-section__head {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .lg-pf-action--review {
        width: auto;
        flex-shrink: 0;
    }

    .lg-pf-action--wa {
        width: auto;
        max-width: 280px;
    }

    .lg-pf-hero__actions .lg-pf-action--wa {
        width: 100%;
        max-width: none;
    }

    .lg-pf-modal {
        align-items: center;
        padding: 16px;
    }

    .lg-pf-modal__panel {
        border-radius: 18px;
    }

    .lg-pf-modal__handle {
        display: none;
    }

    .lg-page-profile .cb-modal {
        align-items: center;
        padding: 16px;
    }

    .lg-page-profile .cb-modal__panel {
        border-radius: 18px;
    }
}
.lg-pf-location {
    padding: 1.1rem;
    border: 1px solid #dce7ef;
    border-radius: 16px;
    background: #f7fafc;
}
.lg-pf-location h2 { display: flex; align-items: center; gap: .55rem; }
.lg-pf-location h2 i { color: #059669; }
.lg-pf-location__address { margin: .65rem 0; color: #153958; font-size: 1.05rem; font-weight: 700; overflow-wrap: anywhere; }
.lg-pf-location__description { margin-bottom: 1rem; overflow-wrap: anywhere; }
.lg-pf-location__map {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    min-height: 46px;
    max-width: 100%;
    padding: .7rem 1rem;
    border-radius: 11px;
    background: #059669;
    color: #fff;
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}
.lg-pf-location__map:hover { background: #047857; color: #fff; }
.lg-pf-location__map:focus-visible { outline: 3px solid #0f2d52; outline-offset: 3px; }
@media (max-width: 540px) {
    .lg-pf-location { padding: .9rem; }
    .lg-pf-location__map { display: flex; width: 100%; }
}

/* Write message modal */
.lg-pf-modal--msg .lg-pf-modal__panel {
    max-width: 480px;
}

.lg-pf-modal__icon--msg {
    background: rgba(5, 150, 105, 0.1);
    color: var(--lg-emerald, #059669);
}

.lg-pf-writemsg-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid var(--lg-border, #e2e8f0);
    border-radius: 14px;
    margin-bottom: 16px;
}

.lg-pf-writemsg-card__ava {
    width: 52px;
    height: 52px;
    min-width: 52px;
    max-width: 52px;
    min-height: 52px;
    max-height: 52px;
    border-radius: 12px;
    overflow: hidden;
    background: #e2e8f0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

.lg-pf-writemsg-card__ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lg-pf-writemsg-card__ph {
    font-size: 22px;
    color: #94a3b8;
}

.lg-pf-writemsg-card__info {
    flex: 1 1 auto;
    min-width: 0;
}

.lg-pf-writemsg-card__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--lg-blue, #0f2d52);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.lg-pf-writemsg-card__role {
    font-size: 13px;
    font-weight: 500;
    color: #475569;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-pf-writemsg-card__city {
    font-size: 12px;
    color: var(--lg-muted, #64748b);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
}

.lg-pf-writemsg-card__city i {
    font-size: 10px;
    color: var(--lg-emerald, #059669);
}

.lg-pf-writemsg-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: var(--lg-emerald, #059669);
    background: rgba(5, 150, 105, 0.1);
    padding: 4px 8px;
    border-radius: 8px;
    flex-shrink: 0;
    align-self: flex-start;
}

.lg-pf-writemsg-card__badge i {
    font-size: 11px;
}

.lg-pf-writemsg-form {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.lg-pf-writemsg-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--lg-text, #1e293b);
    text-transform: none;
    letter-spacing: normal;
}

.lg-pf-writemsg-textarea {
    width: 100%;
    min-height: 110px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--lg-border, #cbd5e1);
    background: #fff;
    color: var(--lg-text, #0f172a);
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    outline: none;
    resize: vertical;
    box-sizing: border-box;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.lg-pf-writemsg-textarea:focus {
    border-color: var(--lg-emerald, #059669);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.lg-pf-writemsg-error {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    padding: 8px 12px;
    background: #fef2f2;
    border-radius: 10px;
    border: 1px solid #fecaca;
    margin-top: 4px;
}

.lg-pf-writemsg-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

.lg-pf-writemsg-cancel {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid var(--lg-border, #e2e8f0);
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    transition: background 0.15s;
}

.lg-pf-writemsg-cancel:hover {
    background: #f1f5f9;
}

.lg-pf-writemsg-submit {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: var(--lg-emerald, #059669);
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 6px rgba(5, 150, 105, 0.25);
}

.lg-pf-writemsg-submit:hover {
    background: #047857;
}

.lg-pf-writemsg-submit:active {
    transform: scale(0.98);
}

.lg-pf-writemsg-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}
