.rw-reviews-page {
    background: #f6f8fb;
    padding: 34px 0 54px;
}

.rw-reviews-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.rw-hero {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    padding: 28px;
    background: linear-gradient(135deg, #2d3a8c 0%, #5d3ebc 48%, #2ab97e 100%);
    color: #ffffff;
    box-shadow: 0 18px 48px rgba(45, 58, 140, .22);
    margin-bottom: 22px;
}

.rw-hero:before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 240px;
    height: 240px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
}

.rw-hero:after {
    content: "";
    position: absolute;
    bottom: -110px;
    left: 18%;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
}

.rw-hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.rw-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.rw-hero-title {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -.5px;
}

.rw-hero-text {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    line-height: 1.7;
}

.rw-hero-stat {
    min-width: 178px;
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(8px);
}

.rw-hero-stat-number {
    color: #ffffff;
    font-size: 38px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 6px;
}

.rw-hero-stat-label {
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    font-weight: 700;
}

.rw-filter-card {
    border-radius: 22px;
    padding: 16px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 10px 34px rgba(15, 23, 42, .06);
    margin-bottom: 22px;
}

.rw-filter-form {
    display: grid;
    grid-template-columns: 1fr 170px 150px auto;
    gap: 12px;
    align-items: center;
}

.rw-filter-input,
.rw-filter-select {
    width: 100%;
    height: 46px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.rw-filter-input:focus,
.rw-filter-select:focus {
    border-color: #5d3ebc;
    box-shadow: 0 0 0 4px rgba(93, 62, 188, .10);
}

.rw-filter-btn,
.rw-filter-clear {
    height: 46px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    text-decoration: none !important;
    white-space: nowrap;
}

.rw-filter-btn {
    color: #ffffff !important;
    background: linear-gradient(135deg, #5d3ebc, #2ab97e);
    box-shadow: 0 8px 20px rgba(93, 62, 188, .18);
}

.rw-filter-clear {
    color: #374151 !important;
    background: #f3f5f8;
}

.rw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.rw-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, .07);
    box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.rw-card:hover {
    transform: translateY(-4px);
    border-color: rgba(93, 62, 188, .18);
    box-shadow: 0 18px 48px rgba(15, 23, 42, .10);
}

.rw-card-topline {
    height: 5px;
    background: linear-gradient(90deg, #2ab97e, #5d3ebc);
}

.rw-card-body {
    padding: 20px;
}

.rw-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rw-profile-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.rw-profile-info {
    min-width: 0;
}

.rw-avatar {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    font-size: 20px;
    background: linear-gradient(135deg, #2ab97e, #5d3ebc);
    box-shadow: 0 10px 22px rgba(42, 185, 126, .22);
    flex-shrink: 0;
    overflow: hidden;
}

.rw-avatar-image {
    background: #f1f5f9;
}

.rw-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.rw-login {
    margin: 0;
    color: #111827;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 900;
    word-break: break-word;
}

.rw-date {
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.rw-profile-rating {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
}

.rw-stars {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    color: #f59e0b;
    font-size: 15px;
    line-height: 1;
    white-space: nowrap;
}

.rw-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 9px;
    color: #155c41;
    background: rgba(42, 185, 126, .12);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.rw-review-box {
    position: relative;
    min-height: 116px;
    margin: 0 0 14px;
    padding: 16px 16px 16px 18px;
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #edf1f6;
    overflow: hidden;
}

.rw-review-box:before {
    content: "“";
    position: absolute;
    top: -8px;
    left: 10px;
    color: rgba(93, 62, 188, .10);
    font-size: 82px;
    line-height: 1;
    font-weight: 900;
    font-family: Georgia, serif;
}

.rw-text {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #1f2937;
    font-size: 17px;
    line-height: 1.75;
    font-weight: 600;
    word-break: break-word;
}

.rw-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.rw-stat-box {
    min-width: 0;
    border-radius: 16px;
    padding: 10px 7px;
    background: #f8fafc;
    border: 1px solid #edf1f6;
    text-align: center;
}

.rw-stat-icon {
    width: 26px;
    height: 26px;
    margin: 0 auto 6px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5d3ebc;
    background: rgba(93, 62, 188, .09);
    font-size: 12px;
}

.rw-stat-number {
    color: #111827;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rw-stat-label {
    margin-top: 4px;
    color: #6b7280;
    font-size: 10.5px;
    line-height: 1.2;
    font-weight: 800;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
}

.rw-empty {
    border-radius: 24px;
    padding: 42px 20px;
    text-align: center;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.rw-empty-icon {
    width: 68px;
    height: 68px;
    border-radius: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5d3ebc;
    background: rgba(93, 62, 188, .10);
    font-size: 28px;
    margin-bottom: 14px;
}

.rw-empty-title {
    margin: 0 0 7px;
    color: #111827;
    font-size: 20px;
    font-weight: 900;
}

.rw-pagination {
    margin-top: 24px;
    display: flex;
    justify-content: center;
}

@media (max-width: 1100px) {
    .rw-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rw-filter-form {
        grid-template-columns: 1fr 150px 130px auto;
    }
}

@media (max-width: 767.98px) {
    .rw-reviews-page {
        padding: 22px 0 42px;
    }

    .rw-hero {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .rw-hero-inner {
        display: block;
    }

    .rw-hero-title {
        font-size: 26px;
    }

    .rw-hero-stat {
        margin-top: 18px;
        min-width: 0;
        width: 100%;
    }

    .rw-filter-form {
        grid-template-columns: 1fr;
    }

    .rw-filter-btn,
    .rw-filter-clear {
        width: 100%;
    }

    .rw-grid {
        grid-template-columns: 1fr;
    }

    .rw-card-body {
        padding: 16px;
    }

    .rw-profile {
        margin-bottom: 12px;
        align-items: center;
    }

    .rw-profile-left {
        gap: 10px;
    }

    .rw-avatar {
        width: 48px;
        height: 48px;
        border-radius: 16px;
        font-size: 18px;
    }

    .rw-login {
        font-size: 16px;
    }

    .rw-profile-rating {
        gap: 5px;
    }

    .rw-stars {
        font-size: 13px;
        gap: 2px;
    }

    .rw-badge {
        padding: 4px 8px;
        font-size: 10px;
    }

    .rw-review-box {
        min-height: auto;
        padding: 15px;
        margin-bottom: 12px;
        border-radius: 18px;
    }

    .rw-text {
        font-size: 14px;
        line-height: 1.65;
    }

    .rw-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .rw-stat-box {
        border-radius: 14px;
        padding: 8px 4px;
    }

    .rw-stat-icon {
        width: 22px;
        height: 22px;
        border-radius: 8px;
        margin-bottom: 5px;
        font-size: 10px;
    }

    .rw-stat-number {
        font-size: 13px;
        letter-spacing: -.2px;
    }

    .rw-stat-label {
        font-size: 9px;
        margin-top: 3px;
    }
}

@media (max-width: 380px) {
    .rw-card-body {
        padding: 14px;
    }

    .rw-profile {
        gap: 8px;
    }

    .rw-stars {
        font-size: 12px;
    }

    .rw-badge {
        padding: 4px 7px;
        font-size: 9.5px;
    }

    .rw-stats {
        gap: 5px;
    }

    .rw-stat-box {
        padding: 8px 3px;
    }

    .rw-stat-number {
        font-size: 12px;
    }

    .rw-stat-label {
        font-size: 8px;
        line-height: 1.15;
    }
}