/* === PREMIUM RATING PAGE REDESIGN === */

/* Header Section */
.rating-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 0 10px;
}

.btn-back-modern {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-back-modern:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateX(-5px);
}

.page-count-modern {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #aaa;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

.page-count-modern span {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.page-count-modern small {
    font-size: 14px;
    color: #555;
    font-weight: 600;
}

.btn-action-glow {
    background: var(--col-primary);
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(230, 126, 34, 0.4);
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-glow:hover {
    background: #fff;
    color: var(--col-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.6);
}

/* Stats Grid */
.rating-stats-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 25px;
}

/* Member Highlight Card */
.member-highlight-card {
    background: linear-gradient(135deg, #2b0a3d 0%, #151515 80%);
    /* Purple/Pink gradient hint from image */
    border: 1px solid rgba(162, 53, 219, 0.3);
    border-radius: 12px;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.member-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: #a235db;
    /* Purple accent */
    box-shadow: 0 0 15px #a235db;
}

.member-card-content {
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1;
}

.member-avatar-glow {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(162, 53, 219, 0.3);
}

.member-avatar-glow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.label-small {
    color: #aaa;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.member-name-large {
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.member-card-bg-icon {
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 150px;
    color: rgba(255, 255, 255, 0.02);
    transform: rotate(-10deg);
    pointer-events: none;
}

/* Stat Boxes */
.stat-box {
    background: #111;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stat-box::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
}

.stat-positive-modern {
    border-top: none;
}

.stat-positive-modern::after {
    background: #2ecc71;
    box-shadow: 0 0 15px #2ecc71;
}

.stat-neutral-modern::after {
    background: #f1c40f;
    box-shadow: 0 0 15px #f1c40f;
}

.stat-negative-modern::after {
    background: #e74c3c;
    box-shadow: 0 0 15px #e74c3c;
}

.label-stat {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 32px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.text-success {
    color: #2ecc71;
    text-shadow: 0 0 20px rgba(46, 204, 113, 0.3);
}

.text-warning {
    color: #f1c40f;
    text-shadow: 0 0 20px rgba(241, 196, 15, 0.3);
}

.text-danger {
    color: #e74c3c;
    text-shadow: 0 0 20px rgba(231, 76, 60, 0.3);
}

/* Reviews Grid */
.reviews-grid-modern {
    display: grid;
    /* Fixed 3 columns desktop */
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    position: relative;
    z-index: 5;
}

.review-card-modern {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 0;
    /* Padding moved to wrapper */
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    height: 220px;
    /* Fixed height for uniformity */
    /* No overflow hidden here to allow absolute child to pop out */
}

.review-card-modern .review-content-wrapper {
    background: #111;
    border-radius: 12px;
    padding: 25px;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Hide text initially */
    position: relative;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Hover Effect - EXPAND */
.review-card-modern:hover {
    z-index: 100;
    /* Bring to top stack */
}

.review-card-modern:hover .review-content-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 220px;
    /* At least original size */
    background: #161616;
    border-color: var(--col-primary);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    overflow: visible;
    /* Show full text */
    z-index: 101;
}

.review-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-shrink: 0;
    /* Don't squash header */
}

.reviewer-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.reviewer-avatar {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reviewer-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--col-primary);
    margin: 0 0 2px 0;
}

.review-time {
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.review-rating-icon {
    font-size: 24px;
    opacity: 0.3;
}

.review-card-modern:hover .review-rating-icon {
    opacity: 1;
    transform: scale(1.1);
    transition: 0.3s;
}

.review-content {
    flex: 1;
    position: relative;
    /* content overflow hidden via line clamp */
}

.review-content p {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    /* Show 4 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.review-card-modern:hover .review-content p {
    -webkit-line-clamp: unset;
    /* Remove limit */
    color: #fff;
}

/* === SHOW MORE OVERLAY === */
.show-more-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    /* Height of the fade */
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0), #111 80%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 0;
    color: var(--col-primary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
    pointer-events: none;
    /* Let clicks pass through if needed, but here acts as visual cue */
}

.show-more-overlay i {
    margin-left: 5px;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-5px);
    }

    60% {
        transform: translateY(-3px);
    }
}

/* Hide overlay on hover */
.review-card-modern:hover .show-more-overlay {
    opacity: 0;
    pointer-events: none;
}


.empty-state-reviews {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    color: #444;
}

.empty-state-reviews i {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.5;
}


/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #888;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    text-decoration: none;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--col-primary);
    color: #000;
    border-color: var(--col-primary);
    box-shadow: 0 5px 15px rgba(255, 165, 0, 0.2);
}

.pagination-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
    cursor: default;
}


/* === LOGIN MODAL === */
.login-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.login-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.login-modal {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.login-modal-overlay.active .login-modal {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: #666;
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal-btn:hover {
    color: #fff;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #fff;
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.login-header p {
    color: #888;
    margin: 0;
    font-size: 14px;
}

.login-form-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group-premium {
    position: relative;
}

.input-group-premium i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.input-group-premium input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 15px 15px 50px;
    border-radius: 50px;
    color: #fff;
    font-size: 14px;
    transition: 0.3s;
}

.input-group-premium input:focus {
    border-color: var(--col-primary);
    background: rgba(255, 255, 255, 0.08);
    /* fixed from .08 */
    outline: none;
}

.btn-login-submit {
    background: var(--col-primary);
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.btn-login-submit:hover {
    background: #fff;
    color: var(--col-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230, 126, 34, 0.4);
}



/* Responsive */
@media (max-width: 900px) {
    .rating-stats-grid {
        grid-template-columns: 1fr;
    }

    .rating-header-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .page-count-modern {
        position: static;
        transform: none;
        padding: 20px 0;
    }

    .reviews-grid-modern {
        grid-template-columns: 1fr;
    }

    .review-card-modern {
        height: auto;
        min-height: auto;
    }

    /* Disable fancy hover on mobile */
    .review-card-modern .review-content-wrapper {
        height: auto;
        position: static;
        border-color: rgba(255, 255, 255, 0.05);
        background: #111;
        /* Reset bg */
    }

    .review-card-modern:hover {
        transform: none;
        box-shadow: none;
        height: auto;
        z-index: 1;
    }

    .review-card-modern:hover .review-content-wrapper {
        position: static;
        width: auto;
        height: auto;
        border: 1px solid rgba(255, 255, 255, 0.05);
        /* Reset border */
        box-shadow: none;
    }

    .show-more-overlay {
        display: none;
        /* Hide interactive overlay on mobile, show full text always or use simple clamp */
    }

    .review-content p {
        -webkit-line-clamp: unset;
    }
}

.mt-100 {
    margin-top: 100px;
}

.mt-40 {
    margin-top: 40px;
}

.mt-60 {
    margin-top: 60px;
}

.mb-60 {
    margin-bottom: 60px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* REVIEW MODAL PREMIUM STYLES */
.textarea-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    color: #eee;
    font-family: 'Rubik', sans-serif;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.3s;
}

.textarea-group textarea:focus {
    outline: none;
    border-color: #3f87f5;
    /* Blue focus */
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(63, 135, 245, 0.2);
}

.input-label {
    display: block;
    color: #bbb;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 15px;
}

.custom-select-premium {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

.custom-select-premium option {
    background: #222;
    color: #fff;
    padding: 10px;
}

/* Blue Button Variant */
.btn-blue-glow {
    background: linear-gradient(135deg, #3f87f5 0%, #2a5caa 100%);
    box-shadow: 0 10px 25px rgba(63, 135, 245, 0.3);
    margin-top: 25px;
}

.btn-blue-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(63, 135, 245, 0.4);
}

/* Modal Animation */
.modal-animate {
    animation: modalPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPopIn {
    0% {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.header-line {
    width: 50px;
    height: 3px;
    background: #3f87f5;
    margin: 10px auto 0;
    border-radius: 2px;
}


/* Type Selector Styles */
.rating-type-selector {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

/* === EXPANDED CARD LOGIC FOR JS TOGGLE === */
.review-card-modern.expanded-card {
    height: auto !important;
    min-height: 220px;
    z-index: 10 !important;
}

.review-card-modern.expanded-card .review-content-wrapper {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    background: #111;
    border-color: var(--col-primary);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 11;
    overflow: visible !important;
}

.review-card-modern.expanded-card .review-content p {
    -webkit-line-clamp: unset !important;
    color: #fff;
}

.review-card-modern.expanded-card .show-more-overlay {
    display: none !important;
}


.type-option {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #888;
}

.type-option i {
    font-size: 20px;
    transition: all 0.3s;
}

.type-option span {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.type-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

/* Selected States */
.type-option.selected {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.option-positive.selected {
    background: rgba(46, 204, 113, 0.15) !important;
    border-color: #2ecc71 !important;
    color: #2ecc71 !important;
    box-shadow: 0 0 15px rgba(46, 204, 113, 0.2) !important;
}

.option-neutral.selected {
    background: rgba(241, 196, 15, 0.15) !important;
    border-color: #f1c40f !important;
    color: #f1c40f !important;
    box-shadow: 0 0 15px rgba(241, 196, 15, 0.2) !important;
}

.option-negative.selected {
    background: rgba(231, 76, 60, 0.15) !important;
    border-color: #e74c3c !important;
    color: #e74c3c !important;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.2) !important;
}

/* Specific Icon Colors on Hover */
.option-positive:hover i {
    color: #2ecc71;
}

.option-neutral:hover i {
    color: #f1c40f;
}

.option-negative:hover i {
    color: #e74c3c;
}

/* ADJUST MODAL WIDTH */
.login-modal {
    max-width: 500px !important;
    /* WIDER */
    width: 90% !important;
}

.char-count-indicator {
    text-align: right;
    font-size: 11px;
    color: #666;
    margin-top: 5px;
    font-weight: 600;
}


/* Admin Delete Button */
.btn-delete-review {
    background: rgba(231, 76, 60, 0.1);
    /* Subtle red bg */
    border: 1px solid rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.btn-delete-review:hover {
    background: #e74c3c;
    color: #fff;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.4);
    transform: scale(1.1);
}

/* ADMIN REPLY STYLES */
.btn-reply-action {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: #888;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.btn-reply-action:hover {
    background: var(--col-primary);
    color: #fff;
    transform: rotate(15deg);
}

/* REDESIGNED ADMIN REPLY (INTERACTIVE) */
.interactive-reply-wrapper {
    margin-top: 15px;
    transition: all 0.3s ease;
}



/* Hidden Content Layout */
.hidden-reply-content {
    margin-top: 30px;
    /* Increased from 20px */
    padding-left: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    /* Increased from 20px */
}

.fade-in-reply {
    animation: fadeIn 0.4s ease-out;
}

.reply-chat-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.admin-head-wrapper {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.2);
    /* Subtle Gold Border */
}

.admin-head-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reply-chat-bubble {
    background: #181818;
    border-radius: 0 15px 15px 15px;
    /* Bubble shape */
    padding: 20px;
    flex: 1;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Bubble Triange */
.reply-chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    width: 0;
    height: 0;
    border-top: 15px solid #181818;
    border-left: 15px solid transparent;
}

.bubble-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.bubble-author {
    color: #fff;
    font-weight: 700;
    font-size: 13px;
}

.bubble-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%);
    color: #000;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.bubble-message {
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 300;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dynamic Premium Reveal Button */
.btn-reveal-reply {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    padding: 12px 30px;
    border-radius: 50px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-reveal-reply::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: -1;
    border-radius: 50px;
}

.btn-reveal-reply:hover {
    color: #fff;
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.1);
    letter-spacing: 4px;
}

.btn-reveal-reply:hover::before {
    width: 100%;
}

.btn-reveal-reply i {
    transition: 0.4s;
}

.btn-reveal-reply:hover i {
    color: #FFD700;
    transform: rotate(180deg);
}

/* Logic for reveal-on-hover */
.interactive-reply-wrapper.reveal-on-hover .btn-reveal-reply {
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
}

.review-card-modern:hover .interactive-reply-wrapper.reveal-on-hover .btn-reveal-reply,
.interactive-reply-wrapper.reveal-on-hover.reply-open .btn-reveal-reply {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* Delete Reply Button in Bubble */
.btn-delete-reply-bubble {
    background: none;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 11px;
    padding: 4px;
    transition: 0.3s;
    opacity: 0.6;
}

.btn-delete-reply-bubble:hover {
    color: #ff0000;
    opacity: 1;
    transform: scale(1.1);
}