/* ============ USER PUBLIC PROFILE ============ */
.user-profile-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 24px 16px;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}

.user-profile-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    overflow: hidden;
    background: #FFC107;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    flex-shrink: 0;
}
.user-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }

.user-profile-info { flex: 1; min-width: 0; }
.user-profile-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a1a1a;
}

.user-profile-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.user-profile-rating-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}
.user-profile-stars {
    color: #FFC107;
    font-size: 18px;
    letter-spacing: 2px;
}
.user-profile-reviews-count {
    color: #999;
    font-size: 13px;
}

.user-profile-meta {
    font-size: 13px;
    color: #999;
}

.user-profile-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    margin-bottom: 20px;
}
.user-profile-section-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}
.user-profile-section-title i {
    color: #00AAFF;
    margin-right: 6px;
}

.user-profile-ads {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}
.user-profile-ad {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fafafa;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.15s, box-shadow 0.15s;
}
.user-profile-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
}
.user-profile-ad-image {
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
}
.user-profile-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-profile-ad-info { padding: 10px 12px; }
.user-profile-ad-price {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
}
.user-profile-ad-title {
    font-size: 13px;
    color: #666;
    margin: 4px 0;
    line-height: 1.3;
}
.user-profile-ad-location {
    font-size: 12px;
    color: #999;
}

.user-profile-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f0f8ff;
    border-radius: 12px;
    margin-bottom: 16px;
}
.user-profile-summary-value {
    font-size: 28px;
    font-weight: 700;
    color: #00AAFF;
}
.user-profile-summary-stars {
    color: #FFC107;
    font-size: 20px;
    letter-spacing: 2px;
}
.user-profile-summary-count {
    color: #666;
    font-size: 13px;
}

.user-profile-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.user-profile-review {
    padding: 14px;
    background: #fafafa;
    border-radius: 12px;
}
.user-profile-review-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}
.user-profile-review-head b {
    font-size: 14px;
    color: #1a1a1a;
}
.user-profile-review-stars {
    color: #FFC107;
    font-size: 14px;
    letter-spacing: 1px;
}
.user-profile-review-date {
    font-size: 12px;
    color: #999;
    margin-left: auto;
}
.user-profile-review-comment {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
}

.user-profile-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}
.user-profile-empty i { font-size: 48px; color: #ddd; }
.user-profile-empty p { margin: 12px 0 0; }

@media (max-width: 576px) {
    .user-profile-header { flex-direction: column; text-align: center; }
    .user-profile-ads { grid-template-columns: 1fr 1fr; }
}

.user-profile-review-ad {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f0f8ff;
    border-radius: 8px;
    font-size: 13px;
    color: #00AAFF;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s;
}
.user-profile-review-ad:hover {
    background: #e0f0ff;
    color: #0088cc;
    text-decoration: none;
}
.user-profile-review-ad i {
    font-size: 14px;
}

/* ОТВЕТ НА ОТЗЫВ */
.user-profile-review-reply {
    margin-top: 10px;
    padding: 12px 14px;
    background: #e8f4ff;
    border-left: 3px solid #00AAFF;
    border-radius: 8px;
}
.user-profile-review-reply-label {
    font-size: 12px;
    color: #00AAFF;
    font-weight: 700;
    margin-bottom: 4px;
}
.user-profile-review-reply-text {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
}

.user-profile-review-reply-btn {
    margin-top: 10px;
    padding: 6px 14px;
    background: none;
    border: 1px solid #00AAFF;
    color: #00AAFF;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.user-profile-review-reply-btn:hover {
    background: #f0f8ff;
}

/* МОДАЛКА ОТВЕТА */
.reply-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.reply-modal-overlay.open { display: flex; }
.reply-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    position: relative;
}
.reply-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}
.reply-modal-close:hover { background: #f0f0f0; color: #1a1a1a; }
.reply-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
    color: #1a1a1a;
}
#replyText {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}
#replyText:focus {
    outline: none;
    border-color: #00AAFF;
}
.reply-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.reply-btn-ghost {
    padding: 10px 18px;
    background: #f0f0f0;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.reply-btn-ghost:hover { background: #e0e0e0; }
.reply-btn-primary {
    padding: 10px 20px;
    background: #00AAFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.reply-btn-primary:hover { background: #0088cc; }

.user-profile-review-report {
    margin-top: 10px;
    margin-left: 8px;
    padding: 6px 14px;
    background: none;
    border: 1px solid #e0e0e0;
    color: #999;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s;
}
.user-profile-review-report:hover {
    border-color: #FF4053;
    color: #FF4053;
}

/* МОДАЛКА ЖАЛОБЫ */
.report-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.report-modal-overlay.open { display: flex; }
.report-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
}
.report-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 6px;
}
.report-modal-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 16px;
}
.report-radio {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 14px;
    color: #1a1a1a;
}
.report-radio input { accent-color: #00AAFF; }
#reportComment {
    width: 100%;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}
.report-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.report-btn-ghost {
    padding: 10px 18px;
    background: #f0f0f0;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.report-btn-primary {
    padding: 10px 20px;
    background: #FF4053;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.report-btn-primary:hover { background: #cc3344; }