﻿
/* ============================================================
   DESIGN TOKENS — 2026 EDITION
   ============================================================ */
:root {
    --primary: #14b8a6;
    --primary-light: #5eead4;
    --primary-soft: #99f6e4;
    --primary-dark: #0f766e;
    --primary-darker: #134e4a;
    --accent-teal: #2dd4bf;
    --accent-emerald: #10b981;
    --accent-cyan: #06b6d4;
    --bg-light: #f0fdfa;
    --bg-white: #ffffff;
    --text-dark: #0f172a;
    --text-gray: #64748b;
    --text-light: #94a3b8;
    --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%);
    --gradient-soft: linear-gradient(135deg, #d1fae5 0%, #ccfbf1 100%);
    --gradient-dark: linear-gradient(160deg, #020c18 0%, #0a1f2e 50%, #0d2137 100%);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 20px 48px rgba(0,0,0,0.12);
    --shadow-xl: 0 24px 60px rgba(0,0,0,0.16);
    --shadow-glow: 0 0 40px rgba(20,184,166,0.28);
    --shadow-glow-sm: 0 0 18px rgba(20,184,166,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-2xl: 32px;
    --radius-full: 9999px;
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* ============================================================
   BASE
   ============================================================ */
.reviews-page {
    background: var(--bg-light);
    min-height: 100vh;
    padding: 0 0 5rem;
    direction: rtl;
    color: var(--text-dark);
}

/* ============================================================
   HERO  — cinematic dark + aurora mesh
   ============================================================ */
.reviews-hero {
    background: var(--gradient-dark);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6.5rem;
    margin-bottom: -3rem;
    isolation: isolate;
}

    /* Aurora blobs */
    .reviews-hero::before {
        content: '';
        position: absolute;
        top: -120px;
        left: -80px;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle at 40% 40%, rgba(20,184,166,0.35) 0%, rgba(6,182,212,0.15) 40%, transparent 70%);
        border-radius: 50%;
        animation: aurora-drift 9s ease-in-out infinite;
        filter: blur(2px);
    }

    .reviews-hero::after {
        content: '';
        position: absolute;
        bottom: -140px;
        right: -60px;
        width: 560px;
        height: 560px;
        background: radial-gradient(circle at 60% 60%, rgba(6,182,212,0.22) 0%, rgba(16,185,129,0.1) 45%, transparent 70%);
        border-radius: 50%;
        animation: aurora-drift 12s ease-in-out infinite reverse;
        filter: blur(4px);
    }

/* Animated grid */
.reviews-hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(20,184,166,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(20,184,166,0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: grid-scroll 25s linear infinite;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* Floating particles (CSS only) */
.reviews-hero-content::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    box-shadow: 80px 30px 0 rgba(94,234,212,0.5), 160px -20px 0 rgba(6,182,212,0.4), 240px 60px 0 rgba(20,184,166,0.35), -60px 80px 0 rgba(16,185,129,0.3), 300px 20px 0 rgba(45,212,191,0.45), -120px -40px 0 rgba(20,184,166,0.25);
    animation: particle-float 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes aurora-drift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-20px, 25px) scale(0.95);
    }
}

@keyframes grid-scroll {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(48px, 48px);
    }
}

@keyframes particle-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.7;
    }

    50% {
        transform: translateY(-18px) rotate(5deg);
        opacity: 1;
    }
}

.reviews-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(20,184,166,0.12);
    border: 1px solid rgba(20,184,166,0.35);
    backdrop-filter: blur(12px);
    color: var(--primary-light);
    padding: 7px 20px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    animation: hero-in 0.7s var(--ease-out-expo) both;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.reviews-hero h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 5.5vw, 3.6rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.6rem;
    line-height: 1.08;
    animation: hero-in 0.7s var(--ease-out-expo) 0.1s both;
    letter-spacing: -0.02em;
}

    .reviews-hero h1 span {
        background: linear-gradient(135deg, #5eead4 0%, #38bdf8 50%, #34d399 100%);
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: gradient-pan 5s ease infinite;
    }

.hero-sub {
    color: rgba(148,163,184,0.9);
    font-size: 1rem;
    font-weight: 400;
    animation: hero-in 0.7s var(--ease-out-expo) 0.2s both;
}

/* Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 2.5rem;
    animation: hero-in 0.7s var(--ease-out-expo) 0.35s both;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(20,184,166,0.18);
    backdrop-filter: blur(16px);
    border-radius: var(--radius-2xl);
    padding: 0;
    display: inline-flex;
    overflow: hidden;
    margin-top: 2.5rem;
}

.hero-stat {
    text-align: center;
    padding: 1.1rem 2.2rem;
    position: relative;
}

    .hero-stat + .hero-stat::before {
        content: '';
        position: absolute;
        left: 0;
        top: 20%;
        bottom: 20%;
        width: 1px;
        background: rgba(20,184,166,0.25);
    }

.hero-stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5eead4, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 0.7rem;
    color: rgba(148,163,184,0.8);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

/* ============================================================
   ALERTS
   ============================================================ */
.rv-alert {
    border-radius: var(--radius-lg);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide-in-top 0.45s var(--ease-spring) both;
    border: 1px solid transparent;
}

    .rv-alert.success {
        background: linear-gradient(135deg, rgba(209,250,229,0.9), rgba(204,251,241,0.9));
        border-color: rgba(16,185,129,0.25);
        color: var(--primary-darker);
        box-shadow: 0 4px 16px rgba(16,185,129,0.1);
    }

    .rv-alert.error {
        background: linear-gradient(135deg, rgba(254,226,226,0.9), rgba(254,202,202,0.9));
        border-color: rgba(239,68,68,0.25);
        color: #991b1b;
        box-shadow: 0 4px 16px rgba(239,68,68,0.1);
    }

/* ============================================================
   ADD REVIEW CARD
   ============================================================ */
.add-review-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(20,184,166,0.1);
    overflow: hidden;
    margin-bottom: 2.5rem;
    animation: card-rise 0.7s var(--ease-out-expo) 0.4s both;
    transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth);
    position: relative;
}

    .add-review-card::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: var(--radius-2xl);
        padding: 1.5px;
        background: linear-gradient(135deg, rgba(20,184,166,0.4), rgba(6,182,212,0.2), transparent 60%);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.4s;
        pointer-events: none;
    }

    .add-review-card:hover {
        box-shadow: var(--shadow-lg), var(--shadow-glow);
        transform: translateY(-3px);
    }

        .add-review-card:hover::before {
            opacity: 1;
        }

.add-review-header {
    background: var(--gradient-primary);
    padding: 1.3rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

    .add-review-header::after {
        content: '';
        position: absolute;
        top: -50%;
        right: -20px;
        width: 140px;
        height: 200%;
        background: rgba(255,255,255,0.07);
        transform: skewX(-20deg);
        animation: header-sheen 4s ease-in-out infinite 2s;
    }

@keyframes header-sheen {
    0%, 100% {
        right: -20px;
        opacity: 0;
    }

    40% {
        right: calc(100% + 20px);
        opacity: 1;
    }

    41% {
        opacity: 0;
    }
}

.add-review-header-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
}

.add-review-header h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
    margin: 0;
    letter-spacing: -0.01em;
}

.add-review-body {
    padding: 1.85rem;
}

/* Star Rating Pills */
.star-rating-group {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
}

.star-option input[type="radio"] {
    display: none;
}

.star-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-full);
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-gray);
    transition: all 0.25s var(--ease-spring);
    user-select: none;
}

    .star-label:hover {
        border-color: var(--primary);
        background: var(--gradient-soft);
        color: var(--primary-dark);
        transform: translateY(-2px) scale(1.04);
        box-shadow: var(--shadow-glow-sm);
    }

.star-option input[type="radio"]:checked + .star-label {
    border-color: transparent;
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 6px 20px rgba(20,184,166,0.4);
    transform: translateY(-2px) scale(1.06);
}

/* Textarea */
.rv-textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: var(--radius-lg);
    padding: 0.9rem 1.1rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: #f8fafc;
    resize: vertical;
    transition: border-color 0.28s, box-shadow 0.28s, background 0.28s;
    outline: none;
    line-height: 1.6;
}

    .rv-textarea:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 4px rgba(20,184,166,0.12);
        background: #fff;
    }

/* Submit button */
.btn-submit-review {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.72rem 2rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    box-shadow: 0 4px 18px rgba(20,184,166,0.38);
    position: relative;
    overflow: hidden;
}

    .btn-submit-review::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0);
        transition: background 0.2s;
    }

    .btn-submit-review:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 10px 30px rgba(20,184,166,0.5);
    }

        .btn-submit-review:hover::after {
            background: rgba(255,255,255,0.08);
        }

    .btn-submit-review:active {
        transform: scale(0.97);
    }

/* ============================================================
   DIVIDER
   ============================================================ */
.rv-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0 2rem;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

    .rv-divider::before,
    .rv-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(20,184,166,0.35), transparent);
    }

/* ============================================================
   REVIEW CARD
   ============================================================ */
.rv-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(241,245,249,0.9);
    overflow: visible;
    margin-bottom: 1.4rem;
    transition: box-shadow 0.4s var(--ease-smooth), transform 0.4s var(--ease-smooth), border-color 0.4s var(--ease-smooth);
    animation: card-rise 0.6s var(--ease-out-expo) both;
    position: relative;
}

    /* Shimmer border on hover */
    .rv-card::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: calc(var(--radius-2xl) + 1px);
        background: linear-gradient(135deg, rgba(20,184,166,0.5) 0%, rgba(6,182,212,0.3) 50%, rgba(16,185,129,0.2) 100%);
        opacity: 0;
        transition: opacity 0.4s var(--ease-smooth);
        z-index: -1;
        pointer-events: none;
        filter: blur(0.5px);
    }

    .rv-card:hover {
        box-shadow: var(--shadow-lg), 0 0 0 1px rgba(20,184,166,0.14), var(--shadow-glow-sm);
        transform: translateY(-4px);
    }

        .rv-card:hover::before {
            opacity: 1;
        }

.rv-card-body {
    padding: 1.6rem 1.85rem;
}

/* ============================================================
   AVATAR  — initials circle
   ============================================================ */
.rv-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(20,184,166,0.38), inset 0 1px 0 rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
}

    .rv-avatar:hover {
        transform: scale(1.1) rotate(-3deg);
        box-shadow: 0 8px 24px rgba(20,184,166,0.5);
    }

    /* Shine sweep */
    .rv-avatar::after {
        content: '';
        position: absolute;
        top: -50%;
        left: -75%;
        width: 50%;
        height: 200%;
        background: linear-gradient( 105deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70% );
        animation: avatar-shine 4s ease-in-out infinite;
    }

    .rv-avatar.small {
        width: 38px;
        height: 38px;
        font-size: 0.88rem;
        background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--primary-dark) 100%);
    }

@keyframes avatar-shine {
    0% {
        left: -75%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    60%, 100% {
        left: 125%;
        opacity: 0;
    }
}

/* ============================================================
   REVIEWER INFO
   ============================================================ */
.rv-user-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.rv-user-info {
    flex: 1;
}

.rv-user-name {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-dark);
    margin: 0 0 4px;
    letter-spacing: -0.01em;
}

.rv-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.rv-date {
    font-size: 0.76rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Stars */
.rv-stars {
    display: flex;
    gap: 2px;
}

    .rv-stars i {
        font-size: 0.82rem;
        transition: transform 0.18s var(--ease-spring);
    }

        .rv-stars i:hover {
            transform: scale(1.45) rotate(-5deg);
        }

.rv-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: var(--radius-full);
    padding: 3px 10px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #92400e;
    box-shadow: 0 2px 8px rgba(234,179,8,0.2);
}

/* ============================================================
   COMMENT BLOCK
   ============================================================ */
.rv-comment {
    font-size: 0.92rem;
    color: var(--text-gray);
    line-height: 1.75;
    margin: 1.1rem 0 0.85rem;
    padding: 1rem 1.15rem;
    background: linear-gradient(135deg, #f8fafc, #f0fdf9);
    border-radius: var(--radius-lg);
    border-right: 3px solid var(--primary-light);
    border-left: none;
    position: relative;
    transition: background 0.3s;
}

.rv-card:hover .rv-comment {
    background: linear-gradient(135deg, #f0fdf9, #e8fdf8);
}

/* ============================================================
   ACTION BUTTONS
   ============================================================ */
.rv-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0.6rem;
}

.rv-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.79rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    border: 1.5px solid;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.28s var(--ease-spring);
    background: transparent;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

    .rv-btn::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: currentColor;
        opacity: 0;
        transition: opacity 0.2s;
    }

    .rv-btn:active::after {
        opacity: 0.08;
    }

.rv-btn-danger {
    border-color: #fca5a5;
    color: #dc2626;
}

    .rv-btn-danger:hover {
        background: #fee2e2;
        border-color: #dc2626;
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 4px 14px rgba(220,38,38,0.2);
        color: #dc2626;
    }

.rv-btn-warning {
    border-color: #fcd34d;
    color: #d97706;
}

    .rv-btn-warning:hover {
        background: #fef3c7;
        border-color: #d97706;
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 4px 14px rgba(217,119,6,0.18);
        color: #d97706;
    }

.rv-btn-secondary {
    border-color: #cbd5e1;
    color: var(--text-gray);
}

    .rv-btn-secondary:hover {
        background: #f1f5f9;
        border-color: var(--text-gray);
        transform: translateY(-2px) scale(1.04);
        color: var(--text-dark);
    }

.rv-btn-primary {
    border-color: rgba(20,184,166,0.38);
    color: var(--primary-dark);
}

    .rv-btn-primary:hover {
        background: var(--gradient-soft);
        border-color: var(--primary);
        transform: translateY(-2px) scale(1.04);
        box-shadow: var(--shadow-glow-sm);
        color: var(--primary-dark);
    }

/* ============================================================
   REPLIES SECTION
   ============================================================ */
.rv-replies-wrap {
    margin-top: 1.2rem;
    border-right: 3px solid var(--primary-light);
    border-left: none;
    padding-right: 1.2rem;
    padding-left: 0;
    background: linear-gradient(to left, rgba(20,184,166,0.035), transparent);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.replies-label {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.rv-reply-item {
    display: flex;
    gap: 11px;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(20,184,166,0.08);
    animation: slide-in-right 0.4s var(--ease-out-expo) both;
}

    .rv-reply-item:last-child {
        border-bottom: none;
    }

.rv-reply-content {
    flex: 1;
}

.rv-reply-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.rv-reply-name {
    font-family: 'Syne', sans-serif;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-dark);
}

.rv-reply-text {
    font-size: 0.86rem;
    color: var(--text-gray);
    line-height: 1.65;
    margin: 0;
}

/* ============================================================
   REPLY FORM
   ============================================================ */
.rv-reply-form-wrap {
    margin-top: 1rem;
    background: linear-gradient(135deg, #f0fdfb 0%, #e6fdf8 100%);
    border-radius: var(--radius-xl);
    padding: 1.3rem;
    border: 1.5px dashed rgba(20,184,166,0.28);
    animation: expand-in 0.35s var(--ease-spring) both;
}

    .rv-reply-form-wrap textarea {
        width: 100%;
        border: 1.5px solid rgba(20,184,166,0.2);
        border-radius: var(--radius-md);
        padding: 0.8rem 1rem;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 0.87rem;
        color: var(--text-dark);
        background: #fff;
        resize: vertical;
        transition: border-color 0.25s, box-shadow 0.25s;
        outline: none;
        line-height: 1.6;
    }

        .rv-reply-form-wrap textarea:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(20,184,166,0.12);
        }

.btn-send-reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    padding: 7px 20px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    box-shadow: 0 4px 14px rgba(20,184,166,0.33);
}

    .btn-send-reply:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 8px 22px rgba(20,184,166,0.45);
    }

.btn-cancel-reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: var(--text-gray);
    border: 1.5px solid #d1d5db;
    border-radius: var(--radius-full);
    padding: 6px 15px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.22s var(--ease-smooth);
}

    .btn-cancel-reply:hover {
        background: #f1f5f9;
        border-color: var(--text-gray);
        transform: scale(1.03);
    }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.rv-empty {
    text-align: center;
    padding: 5rem 2rem;
    animation: card-rise 0.8s var(--ease-out-expo) both;
}

.rv-empty-icon {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.75rem;
    border-radius: 50%;
    background: var(--gradient-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: var(--shadow-glow), 0 0 0 12px rgba(20,184,166,0.06);
    animation: levitate 4s ease-in-out infinite;
    position: relative;
}

    .rv-empty-icon::before {
        content: '';
        position: absolute;
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
        width: 60px;
        height: 12px;
        background: rgba(20,184,166,0.15);
        border-radius: 50%;
        filter: blur(4px);
        animation: levitate-shadow 4s ease-in-out infinite;
    }

@keyframes levitate {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

@keyframes levitate-shadow {
    0%, 100% {
        transform: translateX(-50%) scaleX(1);
        opacity: 0.5;
    }

    50% {
        transform: translateX(-50%) scaleX(0.65);
        opacity: 0.2;
    }
}

.rv-empty h5 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.rv-empty p {
    color: var(--text-light);
    font-size: 0.92rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.rv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 3rem;
    animation: hero-in 0.6s var(--ease-out-expo) 0.5s both;
}

.rv-page-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    transition: all 0.3s var(--ease-spring);
    border: 1.5px solid #e2e8f0;
    color: var(--text-gray);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

    .rv-page-btn:hover:not(.disabled) {
        background: var(--gradient-primary);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 8px 24px rgba(20,184,166,0.38);
        transform: translateY(-2px) scale(1.04);
    }

    .rv-page-btn.disabled {
        opacity: 0.35;
        pointer-events: none;
    }

.rv-page-indicator {
    padding: 9px 22px;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 800;
    background: var(--gradient-soft);
    color: var(--primary-dark);
    border: 1.5px solid rgba(20,184,166,0.22);
    letter-spacing: 0.01em;
}

/* ============================================================
   DELETE MODAL
   ============================================================ */
.rv-modal .modal-content {
    border-radius: var(--radius-2xl);
    border: none;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0,0,0,0.08);
    overflow: hidden;
}

.rv-modal .modal-header {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    padding: 1.3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

    .rv-modal .modal-header::after {
        content: '';
        position: absolute;
        top: 0;
        left: -60%;
        width: 40%;
        height: 100%;
        background: rgba(255,255,255,0.08);
        transform: skewX(-20deg);
        animation: header-sheen 3s ease-in-out infinite;
    }

.rv-modal .modal-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.rv-modal .modal-body {
    padding: 2.2rem 1.75rem 1.5rem;
    text-align: center;
}

.delete-modal-icon {
    width: 76px;
    height: 76px;
    margin: 0 auto 1.2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    animation: modal-icon-pop 0.5s var(--ease-spring) both;
    box-shadow: 0 4px 20px rgba(220,38,38,0.18);
}

.rv-modal .modal-footer {
    border: none;
    padding: 1rem 1.75rem 1.75rem;
    justify-content: center;
    gap: 12px;
}

.btn-modal-cancel {
    padding: 9px 26px;
    border-radius: var(--radius-full);
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
}

    .btn-modal-cancel:hover {
        background: #f1f5f9;
        border-color: var(--text-gray);
        transform: scale(1.03);
    }

.btn-modal-delete {
    padding: 9px 26px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: transform 0.3s var(--ease-spring), box-shadow 0.3s;
    box-shadow: 0 4px 16px rgba(220,38,38,0.38);
}

    .btn-modal-delete:hover {
        transform: translateY(-2px) scale(1.04);
        box-shadow: 0 10px 28px rgba(220,38,38,0.5);
    }

/* ============================================================
   KEYFRAME LIBRARY
   ============================================================ */
@keyframes hero-in {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes card-rise {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slide-in-top {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slide-in-right {
    from {
        opacity: 0;
        transform: translateX(16px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes expand-in {
    from {
        opacity: 0;
        transform: scaleY(0.92) translateY(-8px);
        transform-origin: top;
    }

    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

@keyframes modal-icon-pop {
    0% {
        transform: scale(0) rotate(-15deg);
        opacity: 0;
    }

    60% {
        transform: scale(1.15) rotate(4deg);
    }

    100% {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

@keyframes gradient-pan {
    0%, 100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================================
   STAGGERED CARD ENTRANCE
   ============================================================ */
.rv-card:nth-child(1) {
    animation-delay: 0.05s;
}

.rv-card:nth-child(2) {
    animation-delay: 0.12s;
}

.rv-card:nth-child(3) {
    animation-delay: 0.19s;
}

.rv-card:nth-child(4) {
    animation-delay: 0.26s;
}

.rv-card:nth-child(5) {
    animation-delay: 0.33s;
}

.rv-card:nth-child(6) {
    animation-delay: 0.40s;
}

.rv-card:nth-child(7) {
    animation-delay: 0.47s;
}

.rv-card:nth-child(8) {
    animation-delay: 0.54s;
}

/* ============================================================
   COLLAPSE ICON ROTATION
   ============================================================ */
.collapse-icon {
    display: inline-block;
    transition: transform 0.35s var(--ease-spring);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .reviews-hero {
        padding: 3.5rem 0 5rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 0;
    }

    .hero-stat {
        padding: 0.9rem 1.4rem;
    }
}

@media (max-width: 576px) {
    .rv-card-body {
        padding: 1.1rem 1.2rem;
    }

    .add-review-body {
        padding: 1.25rem;
    }

    .rv-actions {
        gap: 6px;
    }

    .reviews-hero h1 {
        font-size: 1.9rem;
    }

    .hero-stat-num {
        font-size: 1.4rem;
    }
}

/* ============================================================
   ACCESSIBILITY  — respect motion preference
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
