.rv-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    animation: dmkRevealUp 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.sp-prod-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}
.sp-prod-heading-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #18181b;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 4px 14px rgba(24, 24, 27, 0.16);
}
[data-theme="dark"] .sp-prod-heading-icon {
    background: #18181c;
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}
.sp-prod-heading-copy h1 {
    font-size: 21px;
    font-weight: 900;
    color: var(--txt, #0f172a);
    margin: 0 0 2px;
    line-height: 1.3;
}
.sp-prod-heading-copy p {
    font-size: 13px;
    color: var(--txt2, #475569);
    margin: 0;
}

.rv-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 26px 28px;
    margin-bottom: 22px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 28px;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}
[data-theme="dark"] .rv-hero {
    background: #111114;
    border-color: rgba(255, 255, 255, 0.085);
    color: #fafafa;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.rv-avg {
    text-align: center;
    min-width: 130px;
    position: relative;
    z-index: 1;
}
.rv-avg-num {
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
    color: #f59e0b;
}
[data-theme="dark"] .rv-avg-num {
    color: #fbbf24;
}
.rv-avg-stars {
    display: flex;
    gap: 3px;
    justify-content: center;
    margin: 8px 0 4px;
    color: #f59e0b;
    font-size: 14px;
}
.rv-avg-count {
    font-size: 12px;
    color: var(--txt2, #475569);
    font-weight: 600;
}
.rv-sep {
    width: 1px;
    height: 90px;
    background: var(--border, #e2e8f0);
}
.rv-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}
.rv-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--txt2, #475569);
    text-decoration: none;
    transition: opacity .15s;
}
.rv-bar-row:hover { opacity: .85; }
.rv-bar-lbl {
    width: 44px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    font-size: 11.5px;
    color: var(--txt, #0f172a);
}
.rv-bar-lbl i { color: #f59e0b; font-size: 10px; }
.rv-bar-track {
    flex: 1;
    height: 7px;
    background: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}
[data-theme="dark"] .rv-bar-track { background: rgba(255, 255, 255, 0.08); }
.rv-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
    border-radius: 99px;
    transition: width .5s cubic-bezier(.22, 1, .36, 1);
}
.rv-bar-cnt {
    width: 32px;
    text-align: right;
    font-weight: 700;
    font-size: 11px;
    color: var(--txt3, #64748b);
}
.rv-cta-zone {
    flex-shrink: 0;
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 160px;
}
.rv-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 20px;
    background: linear-gradient(135deg, #18181b, #27272a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 13.5px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s ease;
    box-shadow: 0 6px 18px -4px rgba(24, 24, 27, 0.25);
}
.rv-cta-btn:hover { background: #09090b; color: #fff; }
.rv-cta-sub {
    font-size: 11px;
    color: var(--txt3, #64748b);
    margin-top: 8px;
    font-weight: 600;
}

.rv-form-outer { margin-bottom: 24px; }
.rv-form-wrap {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--dmk-shadow-card);
    display: none;
}
.rv-form-wrap.open {
    display: block;
    animation: dmkTabIn .3s cubic-bezier(.22, 1, .36, 1) backwards;
}
.rv-step { display: none; }
.rv-step.active { display: block; animation: dmkTabIn .28s cubic-bezier(.22, 1, .36, 1) backwards; }

.rv-step1 {
    padding: 34px 28px 28px;
    text-align: center;
    background: var(--card-bg, #ffffff);
    position: relative;
}
.rv-step1-title { font-size: 19px; font-weight: 900; color: var(--txt, #0f172a); margin: 0 0 4px; }
.rv-step1-sub { font-size: 13px; color: var(--txt2, #475569); margin: 0 0 22px; }
.rv-big-stars { display: flex; gap: 10px; justify-content: center; margin-bottom: 10px; }
.rv-big-stars label {
    font-size: 46px;
    cursor: pointer;
    color: var(--border, #cbd5e1);
    transition: color .15s, transform .2s;
    line-height: 1;
    display: block;
}
.rv-big-stars input { display: none; }
.rv-big-stars label:hover,
.rv-big-stars label:hover ~ label,
.rv-big-stars input:checked ~ label { color: #fbbf24; }
.rv-big-stars label:hover { transform: scale(1.12); }
.rv-star-mood { font-size: 28px; margin-bottom: 3px; min-height: 34px; display: flex; align-items: center; justify-content: center; }
.rv-star-mood-label { font-size: 14.5px; font-weight: 800; min-height: 22px; }
.rv-step1-next {
    margin-top: 18px;
    padding: 11px 28px;
    background: linear-gradient(135deg, #18181b, #27272a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: .4;
    pointer-events: none;
}
[data-theme="dark"] .rv-step1-next { background: #fafafa; color: #09090b; }
.rv-step1-next.ready { opacity: 1; pointer-events: auto; }
.rv-step1-next.ready:hover { opacity: .92; }

.rv-step2-head {
    padding: 14px 20px;
    background: var(--hover-bg, #f1f5f9);
    border-bottom: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    gap: 12px;
}
.rv-step2-head-stars { display: flex; gap: 3px; }
.rv-step2-head-stars i { font-size: 14px; color: #fbbf24; }
.rv-step2-head h2 { font-size: 15px; font-weight: 800; color: var(--txt, #0f172a); margin: 0; }
.rv-step2-back {
    margin-left: auto;
    background: transparent;
    border: 1.5px solid var(--border, #cbd5e1);
    color: var(--txt2, #475569);
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.rv-step2-back:hover { border-color: var(--txt, #0f172a); color: var(--txt, #0f172a); }
.rv-step2-body { padding: 20px 22px; }

.rv-order-select-wrap { margin-bottom: 16px; }
.rv-order-select-lbl {
    font-size: 12px;
    font-weight: 800;
    color: var(--txt, #0f172a);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rv-order-list { display: flex; flex-direction: column; gap: 8px; max-height: 220px; overflow-y: auto; padding-right: 4px; }
.rv-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 12px;
    cursor: pointer;
    transition: all .18s ease;
    background: var(--card-bg, #ffffff);
    position: relative;
}
.rv-order-item:hover { border-color: var(--txt, #0f172a); background: var(--hover-bg, #f8fafc); }
.rv-order-item.selected {
    border-color: var(--txt, #0f172a);
    background: var(--dmk-primary-soft);
    box-shadow: 0 0 0 3px var(--dmk-primary-soft);
}
.rv-order-item.reviewed { opacity: .45; pointer-events: none; }
.rv-order-item.reviewed::after {
    content: 'Đã đánh giá';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: rgba(5, 150, 105, .12);
    padding: 3px 8px;
    border-radius: 6px;
}

.rv-order-card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--hover-bg, #f1f5f9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rv-order-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-order-thumb-fallback { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 18px; }
.rv-order-info { flex: 1; min-width: 0; }
.rv-order-code {
    font-family: monospace;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--dmk-code-fg, #1e293b);
    background: var(--dmk-code-bg, #f1f5f9);
    border: 1px solid var(--dmk-code-bd, #cbd5e1);
    padding: 1px 6px;
    border-radius: 5px;
    display: inline-block;
}
.rv-order-pname { font-size: 12px; color: var(--txt2, #475569); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-order-service-label { color: var(--txt, #0f172a); font-weight: 800; }
.rv-order-type-lbl { font-size: 10.5px; font-weight: 800; padding: 3px 9px; border-radius: 8px; flex-shrink: 0; }
.rv-order-date { font-size: 10.5px; color: var(--txt3, #64748b); margin-top: 2px; }

.rv-fgrp { margin-bottom: 14px; }
.rv-fgrp > label {
    display: block;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--txt, #0f172a);
    text-transform: uppercase;
    letter-spacing: .4px;
    margin-bottom: 6px;
}
.rv-finput, .rv-ftextarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font-size: 13.5px;
    color: var(--txt, #0f172a);
    font-family: inherit;
    background: var(--hover-bg, #f8fafc);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}
.rv-finput:focus, .rv-ftextarea:focus {
    border-color: var(--dmk-primary);
    background: var(--card-bg, #ffffff);
    box-shadow: 0 0 0 3px var(--dmk-primary-soft);
}
.rv-ftextarea { min-height: 100px; resize: vertical; }
.rv-fchar { font-size: 11px; color: var(--txt3, #64748b); text-align: right; margin-top: 4px; font-weight: 600; }
.rv-submit-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #18181b, #27272a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.rv-submit-btn:disabled { opacity: .5; cursor: not-allowed; }

.rv-alert {
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: dmkTabIn .25s ease backwards;
}
.rv-alert.success { background: rgba(5, 150, 105, 0.1); border: 1px solid rgba(5, 150, 105, 0.28); color: #059669; }
[data-theme="dark"] .rv-alert.success { color: #34d399; }
.rv-alert.error { background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.28); color: #dc2626; }
[data-theme="dark"] .rv-alert.error { color: #f87171; }

.rv-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; align-items: center; }
.rv-fpill {
    padding: 6px 15px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--card-bg, #ffffff);
    color: var(--txt2, #475569);
    text-decoration: none;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.rv-fpill:hover { border-color: var(--txt, #0f172a); color: var(--txt, #0f172a); }
.rv-fpill.on {
    background: #18181b;
    color: #fff;
    border-color: #18181b;
}
[data-theme="dark"] .rv-fpill.on {
    background: #fafafa;
    color: #09090b;
    border-color: #fafafa;
}
.rv-fpill i { font-size: 10px; color: #f59e0b; }
.rv-fpill.on i { color: #fbbf24; }
[data-theme="dark"] .rv-fpill.on i { color: #b45309; }
.rv-total { margin-left: auto; font-size: 12px; color: var(--txt3, #64748b); font-weight: 700; }

.rv-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.rv-card {
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 16px;
    padding: 16px 20px;
    transition: border-color .2s;
    position: relative;
    box-shadow: var(--dmk-shadow-card);
}
.rv-card:hover { border-color: #94a3b8; }
[data-theme="dark"] .rv-card:hover { border-color: rgba(255, 255, 255, 0.2); }
.rv-card.is-featured { background: linear-gradient(180deg, #fffdf7 0%, #ffffff 60%, #fffbeb 100%); border: 1.5px solid #f59e0b; box-shadow: 0 4px 18px rgba(245, 158, 11, .14), 0 0 0 1px rgba(245, 158, 11, .08); }
.rv-card.is-featured:hover { border-color: #d97706; box-shadow: 0 8px 24px rgba(245, 158, 11, .2); }
[data-theme="dark"] .rv-card.is-featured { background: linear-gradient(180deg, #17140f 0%, #111114 55%, #1a150c 100%) !important; border: 1.5px solid rgba(251, 191, 36, .62) !important; box-shadow: 0 6px 22px rgba(245, 158, 11, .14), 0 0 0 1px rgba(251, 191, 36, .12) !important; }
[data-theme="dark"] .rv-card.is-featured:hover { border-color: #fbbf24 !important; box-shadow: 0 10px 26px rgba(245, 158, 11, .22), 0 0 0 1px rgba(251, 191, 36, .2) !important; }
.rv-card.is-featured::before {
    content: '⭐ Nổi bật';
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #09090b;
    font-size: 9.5px;
    font-weight: 800;
    padding: 3px 10px;
    border-bottom-left-radius: 10px;
    letter-spacing: .3px;
}

.rv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.rv-card-user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.rv-avatar {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #18181b, #27272a);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 15.5px;
    flex-shrink: 0;
    user-select: none;
    line-height: 1;
}
html[data-theme="dark"] .rv-avatar {
    background: #18181c;
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.rv-user-details { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-user-row { display: flex; align-items: center; gap: 7px; }
.rv-uname { font-size: 13.5px; font-weight: 800; color: var(--txt, #0f172a); }
.rv-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 800;
    color: #059669;
    background: rgba(5, 150, 105, 0.1);
    padding: 2px 7px;
    border-radius: 6px;
}
[data-theme="dark"] .rv-verified-badge { color: #34d399; background: rgba(52, 211, 153, 0.12); }
.rv-rating-row { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--txt3, #64748b); }
.rv-stars { display: flex; gap: 2px; }
.rv-stars i { font-size: 11.5px; color: #f59e0b; }
.rv-stars i.empty { color: var(--border, #cbd5e1); }
.rv-dot { opacity: .4; }
.rv-date { font-size: 11px; font-weight: 600; }

.rv-prod-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px 5px 6px;
    background: var(--hover-bg, #f8fafc);
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 9px;
    max-width: 280px;
    flex-shrink: 0;
}
.rv-prod-tag-thumb {
    width: 30px;
    height: 30px;
    border-radius: 7px;
    overflow: hidden;
    background: var(--card-bg, #ffffff);
    border: 1px solid var(--border, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.rv-prod-tag-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-prod-tag-ico { font-size: 13px; }
.rv-prod-tag-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rv-prod-tag-name { font-size: 11.5px; font-weight: 800; color: var(--txt, #0f172a); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rv-prod-tag-code {
    font-family: monospace;
    font-size: 10px;
    color: var(--dmk-code-fg, #1e293b);
    background: var(--dmk-code-bg, #f1f5f9);
    border: 1px solid var(--dmk-code-bd, #cbd5e1);
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    width: fit-content;
}

.rv-card-title { font-size: 14px; font-weight: 800; color: var(--txt, #0f172a); margin: 0 0 4px; line-height: 1.4; }
.rv-card-text { font-size: 13px; color: var(--txt2, #334155); line-height: 1.6; word-break: break-word; }
[data-theme="dark"] .rv-card-text { color: #d4d4d8; }
.rv-admin-reply {
    margin-top: 10px;
    background: var(--hover-bg, #f8fafc);
    border-left: 3px solid var(--dmk-primary);
    border-radius: 0 10px 10px 0;
    padding: 10px 14px;
}
.rv-admin-reply-head {
    font-size: 11px;
    font-weight: 800;
    color: var(--txt, #0f172a);
    margin-bottom: 3px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rv-admin-reply-body { font-size: 12.5px; color: var(--txt2, #475569); line-height: 1.55; }

.rv-empty { text-align: center; padding: 50px 20px; color: var(--txt3, #64748b); }
.rv-empty i { font-size: 44px; opacity: .3; display: block; margin-bottom: 12px; }

.rv-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.rv-ppage {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid var(--border, #e2e8f0);
    background: var(--card-bg, #ffffff);
    color: var(--txt, #0f172a);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .18s;
}
.rv-ppage:hover { border-color: var(--dmk-primary); }
.rv-ppage.active { background: #18181b; color: #fff; border-color: #18181b; }
[data-theme="dark"] .rv-ppage.active { background: #fafafa; color: #09090b; border-color: #fafafa; }
.rv-ppage.disabled { opacity: .4; pointer-events: none; }
.spinner { display: inline-block; width: 14px; height: 14px; border: 2px solid rgba(255, 255, 255, .3); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media(max-width: 768px) {
    .rv-hero { flex-direction: column; padding: 22px 18px; gap: 18px; }
    .rv-sep { width: 100%; height: 1px; }
    .rv-bars { width: 100%; }
    .rv-card-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .rv-prod-tag { max-width: 100%; width: 100%; }
}
@media(max-width: 480px) {
    .rv-page { padding: 16px 12px 60px; }
    .rv-card { padding: 14px; }
    .rv-big-stars label { font-size: 36px; }
}
