/* Публичный профиль продавца — user-profile.php */
.user-profile-page {
    --up-primary: #720aa4;
    --up-primary-hover: #5d0883;
    --up-secondary: #f1f1f4;
    --up-dark: #050a24;
    --up-muted: #5c647d;
    --up-radius: 16px;
    --up-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* На профиле lux-тема только для карточек, без «холста» на весь экран (иначе min-height:100% наезжает на footer). */
.user-profile-page.grad-rent-lux.grad-rent-lux--profile {
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    border-radius: 0 !important;
    color: inherit;
    overflow: visible;
}

.user-profile-page .breadcrumb {
    background-color: var(--up-secondary);
    border-radius: 12px;
    padding: 15px 20px;
    border: 2px solid var(--up-secondary);
}

.user-profile-page .breadcrumb-item a {
    color: var(--up-primary);
    font-weight: 500;
}

.user-profile-page .breadcrumb-item.active {
    color: var(--up-dark);
    font-weight: 600;
}

.user-profile-page .profile-description {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--up-secondary);
    border: 1px solid rgba(114, 10, 164, 0.08);
}

.user-profile-page .profile-description__text {
    color: var(--up-dark);
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: normal;
    word-break: break-word;
}

.user-profile-page .row {
    align-items: flex-start;
}

.user-profile-sidebar .card {
    border: 2px solid var(--up-secondary);
    border-radius: var(--up-radius);
    box-shadow: var(--up-shadow);
    background: #fff;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.user-profile-sidebar .card:hover {
    box-shadow: 0 12px 30px rgba(114, 10, 164, 0.12);
    border-color: rgba(114, 10, 164, 0.2);
}

.user-profile-sidebar .user-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--up-primary);
    margin: 0 auto 1rem;
}

.user-profile-sidebar .user-avatar img,
.user-profile-sidebar .user-avatar .user-avatar-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-profile-sidebar .user-avatar-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--up-primary), var(--up-dark));
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
}

.user-profile-sidebar .phone-section .phone-reveal-btn,
.user-profile-sidebar .phone-section .btn-primary {
    background: linear-gradient(135deg, var(--up-primary), var(--up-dark));
    border: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 20px;
}

.user-profile-sidebar .phone-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--up-primary);
    text-decoration: none;
    display: block;
    text-align: center;
    margin: 0.75rem 0 0;
    padding: 10px;
    background: rgba(114, 10, 164, 0.08);
    border-radius: 12px;
}

.user-profile-sidebar .stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.user-profile-sidebar .stat-item {
    background: var(--up-secondary);
    border-radius: 12px;
}

.user-profile-main {
    position: relative;
    z-index: 0;
    min-height: 0;
}

.user-profile-main .section-head {
    margin-bottom: 1.25rem;
}

.user-profile-main .section-head h2 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.user-profile-listings {
    margin-bottom: 1.5rem;
    min-height: 0 !important;
    height: auto !important;
    background: transparent !important;
    overflow: visible;
}

.user-profile-listings .itemsBlog.list-view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-profile-listings .itemsBlog.list-view .lux-card {
    flex-direction: row;
    align-items: stretch;
    max-width: 100%;
    min-height: 0;
}

.user-profile-listings .itemsBlog.list-view .lux-card__media {
    width: min(38%, 300px);
    min-width: 200px;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
}

.user-profile-listings .itemsBlog.list-view .lux-card__body {
    flex: 1;
    min-width: 0;
    padding: 16px 18px 18px;
}

.user-profile-listings .lux-card--profile .lux-price {
    font-size: 1.55rem;
}

.user-profile-listings .lux-card--profile .lux-card__desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 0;
}

.user-profile-listings .lux-card--profile .lux-card__meta {
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
}

.user-profile-listings .lux-card--profile .lux-card__actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.75rem;
}

.user-profile-listings .lux-card--profile .btn-lux-primary,
.user-profile-listings .lux-card--profile .btn-lux-fav {
    width: auto;
    flex: 1 1 auto;
    min-width: 140px;
}

.user-profile-listings .lux-card--profile .listing-phone-reveal {
    flex: 1 1 100%;
    margin-top: 0.25rem;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.user-profile-listings .lux-card--profile .listing-phone-reveal__cta {
    max-width: 320px;
}

.user-profile-pager .pagination {
    gap: 0.25rem;
}

.user-profile-secondary-grid .card {
    border-radius: var(--up-radius);
    border: 1px solid var(--up-secondary);
}

body:has(.user-profile-page) > footer {
    position: relative;
    z-index: 20;
    clear: both;
    width: 100%;
    margin-top: 3rem !important;
    background-color: #050a24 !important;
    color: #fff !important;
}

@media (max-width: 767.98px) {
    .user-profile-sidebar .stats-grid {
        grid-template-columns: 1fr;
    }

    .user-profile-listings .itemsBlog.list-view .lux-card {
        flex-direction: column;
    }

    .user-profile-listings .itemsBlog.list-view .lux-card__media {
        width: 100%;
        min-width: 0;
    }

    .user-profile-listings .lux-card--profile .lux-card__actions {
        flex-direction: column;
    }

    .user-profile-listings .lux-card--profile .btn-lux-primary,
    .user-profile-listings .lux-card--profile .btn-lux-fav {
        width: 100%;
    }
}

.seller-status-plaque {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(114, 10, 164, 0.18);
    background: linear-gradient(135deg, #faf7ff 0%, #fff 55%, #f3ecff 100%);
}

.seller-status-plaque--promotion {
    border-color: rgba(217, 119, 6, 0.35);
    background: linear-gradient(135deg, #fffbeb 0%, #fff 60%, #fef3c7 100%);
}

.seller-status-plaque__icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--up-primary);
    color: #fff;
    flex-shrink: 0;
}

.seller-status-plaque--promotion .seller-status-plaque__icon {
    background: #d97706;
}

.seller-status-plaque__title {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--up-dark);
    letter-spacing: 0.01em;
}

.seller-status-plaque__sub {
    font-size: 0.72rem;
    color: #6b7280;
    line-height: 1.4;
    margin-top: 2px;
}

.seller-visibility-index {
    background: linear-gradient(135deg, rgba(114, 10, 164, 0.06), rgba(255, 255, 255, 0.9));
    border: 1px solid rgba(114, 10, 164, 0.12);
}
