.reviews-page-header {
    min-height: auto !important;

    background: transparent !important;
    border: none;
    box-shadow: none;

    padding-bottom: 60px;
    padding-top: 20px;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .reviews-page-header {
        padding-top: 80px;
    }
}

.reviews-title-block {
    text-align: center;
    margin-top: 40px;
}

.reviews-stats-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 20px;
}

.stats-left {
    flex: 1;
    min-width: 200px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--border-color);
    padding-right: 40px;
}

.stats-right {
    flex: 2;
    min-width: 280px;
}

#avg-rating-num {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    display: block;
}

.stars-display {
    color: #ffb800;
    font-size: 1.4rem;
    margin: 10px 0;
    letter-spacing: 2px;
}

.total-count {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.rating-bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.star-label {
    width: 45px;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-weight: 600;
}

.star-label i {
    color: #ffb800;
    font-size: 0.8rem;
}

.bar-track {
    flex-grow: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 100px;
    transition: width 0.6s ease;
    box-shadow: 0 0 10px rgba(91, 77, 255, 0.3);
}

.count-label {
    width: 30px;
    text-align: right;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 25px;
    
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), border-color 0.3s ease;
    animation: fadeIn 0.5s ease;

    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-font-smoothing: subpixel-antialiased;
}

.review-item:hover {
    transform: translateY(-2px) translateZ(0);
    border-color: rgba(91, 77, 255, 0.3);
}

.review-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatar-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2a2b3d 0%, #1a1b26 100%);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
    font-size: 1.2rem;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.user-name {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.review-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.review-stars {
    color: #ffb800;
    font-size: 0.9rem;
}

.review-body {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1rem;
    word-break: break-word;
}

.admin-reply {
    margin-top: 20px;
    padding: 15px 20px;
    background: rgba(91, 77, 255, 0.05);
    border-left: 3px solid #2ed573;
    border-radius: 0 8px 8px 0;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.admin-badge {
    background: #2ed573;
    color: #000;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
}

.cf-turnstile {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    padding: 12px;
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(91, 77, 255, 0.15);
}

.star-rating-input {
    display: flex;
    gap: 8px;
    cursor: pointer;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.1);
}

.star-rating-input i {
    transition: color 0.25s ease-out, transform 0.2s ease;
}

.star-rating-input i.active {
    color: #ffb800;
}

.star-rating-input:hover i {
}

.star-rating-input i:hover~i {
}

.star-rating-input i:hover {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .reviews-stats-card {
        flex-direction: column;
        padding: 20px;
        gap: 30px;
    }

    .stats-left {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 30px;
        width: 100%;
    }

    .review-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .reviews-page-header {
        padding-bottom: 30px;
    }

    .reviews-title-block h1 {
        font-size: 2.2rem;
    }
}