.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.reviews-stats {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.stats-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.stars-display {
    font-size: 32px;
    color: #FF9529;
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.rating-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.rating-row .stars {
    color: #FF9529;
    width: 80px;
}

.rating-bar {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.rating-bar-fill {
    height: 100%;
    background: #FF9529;
    transition: width 0.3s ease;
}

.rating-count {
    color: #666;
    width: 40px;
    text-align: right;
    font-size: 14px;
}

.review-form h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.form-review-group {
    margin-bottom: 20px;
}

.form-review-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.star-rating-review {
    display: flex;
    gap: 5px;
    font-size: 32px;
    cursor: pointer;
}

.star-rating-review .star {
    color: #d1d5db;
    transition: color 0.2s;
}

.star-rating-review .star.active,
.star-rating-review .star:hover,
.star-rating-review .star:hover ~ .star {
    color: #f59e0b;
}

.textarea-review {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
}

.photo-review-upload {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.photo-review-upload-btn {
    width: 100px;
    height: 100px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-review-upload-btn:hover {
    border-color: #f59e0b;
    background: #fffbeb;
}

.photo-review-preview {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.photo-review-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-review-preview-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.btn-review {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-review-primary {
    background: #f59e0b;
    color: white;
}

.btn-review-primary:hover {
    background: #d97706;
}

.btn-review-primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: #fff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.review-item.pending {
    border: 2px solid #f59e0b;
    position: relative;
}

.review-item.pending::before {
    content: 'На модерації';
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
}

.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-author {
    font-weight: 600;
    font-size: 16px;
}

.review-date {
    color: #666;
    font-size: 14px;
}

.review-rating {
    color: #f59e0b;
    font-size: 18px;
}

.review-text {
    margin-bottom: 16px;
    line-height: 1.6;
}

.review-photos {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.review-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f3f3;
    padding: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.review-photo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    transition: transform 0.3s;
}

.review-photo:hover img {
    transform: scale(1.1);
}

.review-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.reaction-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.reaction-btn:hover {
    background: #f9fafb;
}

.reaction-btn.active {
    background: #fffbeb;
    border-color: #f59e0b;
    color: #f59e0b;
}

.admin-actions {
    margin-left: auto;
    display: flex;
    gap: 8px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

.btn-approve {
    background: #10b981;
    color: white;
}

.btn-reject {
    background: #ef4444;
    color: white;
}

.btn-edit {
    background: #3b82f6;
    color: white;
}

.btn-delete {
    background: #ef4444;
    color: white;
}

.message-review {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.message-review-success {
    background: #d1fae5;
    color: #065f46;
}

.message-review-error {
    background: #fee2e2;
    color: #991b1b;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading-review {
    text-align: center;
    padding: 40px;
    color: #666;
}

.hidden-review {
    display: none;
}

.btn-review-secondary {
    background: #e5e7eb;
    color: #374151;
    padding: 12px 32px;
    font-size: 16px;
}

.btn-review-secondary:hover {
    background: #d1d5db;
}

.btn-review-secondary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.load-more-container {
    text-align: center;
    padding: 30px 20px;
}

.char-counter {
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
    text-align: right;
}

.char-counter.error {
    color: #ef4444;
    font-weight: 500;
}

.char-counter.success {
    color: #10b981;
}

.rating-count {
    color: #666;
    width: 40px;
    text-align: right;
    font-size: 14px;
}