/* ============ REVIEWS PAGE ============ */
.reviews-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 24px 16px;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.reviews-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}
.reviews-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}
.reviews-rating-value {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
}
.reviews-rating-stars {
    color: #FFC107;
    font-size: 16px;
    letter-spacing: 1px;
}
.reviews-rating-count {
    color: #999;
}

/* ТАБЫ */
.reviews-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.reviews-tab {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}
.reviews-tab:hover { color: #00AAFF; text-decoration: none; }
.reviews-tab.active { color: #00AAFF; border-bottom-color: #00AAFF; }

/* ЖДУТ ОЦЕНКИ */
.reviews-pending-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.reviews-pending-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.reviews-pending-image {
    width: 60px; height: 60px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f0f0f0;
}
.reviews-pending-image img {
    width: 100%; height: 100%; object-fit: cover;
}
.reviews-pending-info { flex: 1; min-width: 0; }
.reviews-pending-ad {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reviews-pending-user {
    font-size: 13px;
    color: #666;
    margin-top: 2px;
}
.reviews-pending-price {
    font-size: 13px;
    font-weight: 700;
    color: #00AAFF;
    margin-top: 4px;
}
.reviews-pending-btn {
    padding: 10px 16px;
    background: #00AAFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.reviews-pending-btn:hover { background: #0088cc; }

/* СПИСОК ОТЗЫВОВ */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.review-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.review-card-user { font-size: 14px; color: #1a1a1a; }
.review-card-rating { color: #FFC107; font-size: 14px; letter-spacing: 1px; }
.review-card-date { font-size: 12px; color: #999; margin-left: auto; }
.review-card-comment {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}
.review-card-ad {
    font-size: 12px;
    color: #00AAFF;
    text-decoration: none;
}
.review-card-ad:hover { text-decoration: underline; }

/* ПУСТОЕ */
.reviews-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.reviews-empty i { font-size: 64px; color: #ddd; }
.reviews-empty h3 { font-size: 18px; color: #666; margin: 20px 0 8px; }
.reviews-empty p { font-size: 14px; margin: 0; }

/* МОДАЛКА */
.review-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;
}
.review-modal-overlay.open {
    display: flex;
}
.review-modal {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    max-width: 440px;
    width: 100%;
    position: relative;
    animation: modalIn 0.25s ease-out;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.review-modal-close {
    position: absolute;
    top: 12px; right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
}
.review-modal-close:hover { background: #f0f0f0; color: #1a1a1a; }

.review-modal-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a1a;
}
.review-modal-subtitle {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px;
}

.review-stars-input {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
    justify-content: center;
}
.review-star {
    background: none;
    border: none;
    font-size: 36px;
    color: #e0e0e0;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.15s, transform 0.1s;
}
.review-star.hover,
.review-star.active {
    color: #FFC107;
}
.review-star:hover { transform: scale(1.1); }

#reviewComment {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 90px;
    box-sizing: border-box;
}
#reviewComment:focus {
    outline: none;
    border-color: #00AAFF;
}

.review-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}
.review-btn-ghost {
    padding: 10px 18px;
    background: #f0f0f0;
    color: #1a1a1a;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.review-btn-ghost:hover { background: #e0e0e0; }
.review-btn-primary {
    padding: 10px 20px;
    background: #00AAFF;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.review-btn-primary:hover { background: #0088cc; }
.review-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

@media (max-width: 576px) {
    .reviews-pending-card { flex-direction: column; align-items: stretch; }
    .reviews-pending-image { width: 100%; height: 140px; }
    .reviews-pending-btn { width: 100%; }
}