@import url('/css/dashboard-redesign.css');

.dashboard-redesign-page .reviews-page {
    max-width: none;
    margin: 0;
    padding: 0;
}

.dashboard-redesign-page .reviews-page-header {
    position: relative;
    text-align: left;
    margin-bottom: 22px;
    padding: 4px 0 0;
}

.dashboard-redesign-page .reviews-page-header::before {
    content: "Community pulse";
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: #398174;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.dashboard-redesign-page .reviews-page-header::after {
    content: "";
    position: absolute;
    top: 8px;
    right: 0;
    width: 118px;
    height: 72px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(131,223,187,.34), rgba(131,223,187,0) 68%);
    pointer-events: none;
}

.dashboard-redesign-page .reviews-page-header h1 {
    margin: 0 0 8px;
    color: #173b3d;
    font: 600 34px/1.1 "Space Grotesk", sans-serif;
    letter-spacing: -.05em;
}

.dashboard-redesign-page .reviews-page-header p {
    margin: 0;
    color: #829593;
    font-size: 13px;
}

.dashboard-redesign-page .reviews-rating-summary {
    position: relative;
    overflow: hidden;
    margin-bottom: 18px;
    padding: 0;
}

.dashboard-redesign-page .reviews-rating-summary::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, #83dfbb, #72b9ce 55%, #b9a477);
}

.dashboard-redesign-page .reviews-rating-summary,
.dashboard-redesign-page .review-card,
.dashboard-redesign-page .review-empty {
    background: #fbfdfb;
    border-color: #dbe7e2;
    box-shadow: 0 8px 24px #1b403d0a;
}

.dashboard-redesign-page .reviews-rating-summary {
    border-radius: 16px;
}

.dashboard-redesign-page .reviews-summary-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 23px 30px 0;
}

.dashboard-redesign-page .reviews-summary-kicker {
    margin: 0 0 5px;
    color: #398174;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.dashboard-redesign-page .reviews-summary-heading h2 {
    margin: 0;
    color: #173b3d;
    font: 600 18px/1.2 "Space Grotesk", sans-serif;
    letter-spacing: -.03em;
}

.dashboard-redesign-page .reviews-summary-heading span:not(.reviews-summary-badge) {
    display: block;
    margin-top: 5px;
    color: #829593;
    font-size: 11px;
}

.dashboard-redesign-page .reviews-summary-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 9px;
    border: 1px solid #d5e7df;
    border-radius: 8px;
    background: #edf7f2;
    color: #398174;
    font-size: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.dashboard-redesign-page .reviews-summary-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #45bf91;
    box-shadow: 0 0 0 3px #ccefe0;
}

.dashboard-redesign-page .rating-overview {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    justify-content: stretch;
    padding: 28px 30px;
}

.dashboard-redesign-page .rating-center {
    padding-right: 30px;
    border-right: 1px solid #e1ece6;
}

.dashboard-redesign-page .rating-big-number {
    color: #173d43;
    font: 700 58px/.9 "Space Grotesk", sans-serif;
    letter-spacing: -.08em;
}

.dashboard-redesign-page .rating-stars-display {
    margin: 12px 0 8px;
    font-size: 19px;
    letter-spacing: 2px;
}

.dashboard-redesign-page .rating-count {
    color: #829593;
    font-size: 11px;
}

.dashboard-redesign-page .rating-bars {
    min-width: 0;
}

.dashboard-redesign-page .rating-bar-row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 24px;
    gap: 10px;
    align-items: center;
    margin-bottom: 9px;
}

.dashboard-redesign-page .rating-bar-row:last-child {
    margin-bottom: 0;
}

.dashboard-redesign-page .rating-bar-label,
.dashboard-redesign-page .rating-bar-count {
    width: auto;
    color: #78908b;
    font-size: 11px;
}

.dashboard-redesign-page .rating-bar-count {
    text-align: right;
    font-weight: 700;
}

.dashboard-redesign-page .rating-bar-track {
    height: 7px;
    background: #e9f1ed;
    border-radius: 99px;
}

.dashboard-redesign-page .rating-bar-fill {
    background: linear-gradient(90deg, #398174, #83dfbb);
}

.dashboard-redesign-page .reviews-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
    padding: 13px 15px;
    background: #f8fbf9;
    border: 1px solid #dbe7e2;
    border-radius: 14px;
}

.dashboard-redesign-page .reviews-controls .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 15px;
    border: 0;
    border-radius: 10px;
    background: #173d43;
    color: #d7fff3;
    box-shadow: 0 5px 14px rgba(23,61,67,.14);
    font-size: 12px;
    font-weight: 800;
}

.dashboard-redesign-page .reviews-controls .btn:hover {
    background: #276b61;
    transform: translateY(-1px);
}

.dashboard-redesign-page .reviews-sort {
    gap: 9px;
    color: #829593;
    font-size: 11px;
}

.dashboard-redesign-page .reviews-sort label {
    color: #78908b;
    font-weight: 700;
}

.dashboard-redesign-page .reviews-sort select {
    min-height: 36px;
    padding: 0 30px 0 11px;
    border-radius: 9px;
    color: #41625e;
    font-size: 11px;
    font-weight: 700;
}

.dashboard-redesign-page .review-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 22px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.dashboard-redesign-page .review-card::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #83dfbb, #72b9ce);
}

.dashboard-redesign-page .review-card:hover {
    border-color: #b9d7ca;
    box-shadow: 0 14px 30px rgba(27,64,61,.10);
    transform: translateY(-2px);
}

.dashboard-redesign-page .reviews-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-redesign-page .review-card-header {
    margin-bottom: 17px;
}

.dashboard-redesign-page .review-author-name {
    color: #173b3d;
    font-size: 14px;
    letter-spacing: -.01em;
}

.dashboard-redesign-page .review-author-stars {
    font-size: 14px;
    letter-spacing: 1px;
}

.dashboard-redesign-page .review-date {
    padding: 5px 8px;
    border-radius: 7px;
    background: #f0f6f2;
    color: #829593;
    font-size: 10px;
}

.dashboard-redesign-page .review-body {
    min-height: 48px;
    margin-bottom: 18px;
    color: #41625e;
    font-size: 13px;
    line-height: 1.7;
}

.dashboard-redesign-page .review-admin-reply {
    margin-top: 15px;
    padding: 13px 14px;
    border: 1px solid #dcebe3;
    border-left: 3px solid #72b9ce;
    border-radius: 10px;
    background: #f3f9f6;
}

.dashboard-redesign-page .review-admin-reply-label {
    margin-bottom: 6px;
    color: #398174;
    font-size: 11px;
}

.dashboard-redesign-page .review-admin-reply p {
    color: #41625e;
    font-size: 12px;
    line-height: 1.6;
}

.dashboard-redesign-page .review-admin-reply-date {
    color: #91a6a0;
    font-size: 10px;
}

.dashboard-redesign-page .review-reactions {
    gap: 7px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #edf2ef;
}

.dashboard-redesign-page .review-reactions .btn {
    min-width: 52px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11px;
}

.dashboard-redesign-page .review-reactions .btn-secondary {
    background: #f1f6f3;
    border-color: #dce9e3;
    color: #64807a;
}

.dashboard-redesign-page .review-reactions .btn-primary {
    background: #173d43;
    border-color: #173d43;
    color: #d7fff3;
}

.dashboard-redesign-page .review-empty {
    grid-column: 1 / -1;
    border-radius: 16px;
}

.dashboard-redesign-page .reviews-pagination {
    gap: 6px;
    margin-top: 22px;
}

.dashboard-redesign-page .reviews-pagination .btn {
    min-height: 34px;
    border-radius: 9px;
    border-color: #dbe7e2;
    background: #fbfdfb;
    color: #64807a;
    font-size: 11px;
}

.dashboard-redesign-page .reviews-pagination .btn-primary {
    border-color: #173d43;
    background: #173d43;
    color: #d7fff3;
}

.dashboard-redesign-page .reviews-sort select {
    background: #fbfdfb;
    border-color: #dbe7e2;
}

@media (max-width: 720px) {
    .dashboard-redesign-page .rating-overview {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
    }

    .dashboard-redesign-page .reviews-summary-heading {
        padding: 22px 20px 0;
    }

    .dashboard-redesign-page .rating-center {
        padding: 0 0 20px;
        border-right: 0;
        border-bottom: 1px solid #e1ece6;
    }

    .dashboard-redesign-page .reviews-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-redesign-page .reviews-controls .btn,
    .dashboard-redesign-page .reviews-sort,
    .dashboard-redesign-page .reviews-sort select {
        width: 100%;
    }

    .dashboard-redesign-page .reviews-sort {
        justify-content: space-between;
    }

    .dashboard-redesign-page .reviews-list {
        grid-template-columns: 1fr;
    }

    .dashboard-redesign-page .review-empty {
        grid-column: auto;
    }
}
