/**
 * FEF Reviews — Stylesheet
 * ─────────────────────────────────────────────────────────────────────────
 * Self-contained, token-driven styling for every FEF Reviews widget. Uses
 * CSS custom properties (scoped to .fef-rv-* roots) so Elementor style
 * controls can override accent / star / radius per widget instance without
 * touching this file. Fully responsive (mobile-first breakpoints) and
 * includes an automatic + forced dark mode.
 *
 * Sections: tokens · stars · form · media · cards & layouts · summary ·
 * toolbar · load-more · badges · popup · lightbox · toast · my-reviews ·
 * statistics · admin dashboard · dark mode · responsive.
 *
 * @package FrontendForms
 */

/* ── design tokens ─────────────────────────────────────────────────── */
.fef-rv-form-widget,
.fef-rv-list-widget,
.fef-rv-list-wrap,
.fef-rv-summary,
.fef-rv-stars-widget,
.fef-rv-counter-widget,
.fef-rv-statistics,
.fef-rv-myreviews-widget,
.fef-rv-badge-widget {
    --fef-rv-accent: #f5a623;
    --fef-rv-star: #f5a623;
    --fef-rv-star-empty: #d9d9d9;
    --fef-rv-text: #1f2328;
    --fef-rv-muted: #6b7280;
    --fef-rv-border: #e5e7eb;
    --fef-rv-bg: #ffffff;
    --fef-rv-bg-soft: #f7f8fa;
    --fef-rv-radius: 12px;
    --fef-rv-success: #16a34a;
    --fef-rv-error: #dc2626;
    --fef-rv-warn: #f59e0b;
    font-family: inherit;
    color: var(--fef-rv-text);
    box-sizing: border-box;
}
.fef-rv-form-widget *,
.fef-rv-list-wrap *,
.fef-rv-summary *,
.fef-rv-statistics * { box-sizing: border-box; }

/* ── STAR SYSTEM (uses ★ glyphs via ::before so size = font-size) ──── */
.fef-rv-stars { display: inline-flex; gap: 2px; line-height: 1; vertical-align: middle; }
.fef-rv-star { position: relative; display: inline-block; font-style: normal; width: 1em; height: 1em; font-size: inherit; }
.fef-rv-star::before {
    content: "★"; position: absolute; inset: 0;
    color: var(--fef-rv-star-empty, #d9d9d9);
}
.fef-rv-star.is-full::before { color: var(--fef-rv-star, #f5a623); }
.fef-rv-star.is-half::before {
    color: var(--fef-rv-star-empty, #d9d9d9);
    background: linear-gradient(90deg, var(--fef-rv-star, #f5a623) 50%, transparent 50%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
/* Restore glyph draw for half fill */
.fef-rv-star.is-half::after {
    content: "★"; position: absolute; inset: 0; width: 50%; overflow: hidden;
    color: var(--fef-rv-star, #f5a623);
}

/* ── FORM ──────────────────────────────────────────────────────────── */
.fef-rv-form { display: flex; flex-direction: column; gap: 16px; background: var(--fef-rv-bg); }
.fef-rv-form-heading { margin: 0 0 12px; font-size: 1.25rem; font-weight: 700; }
.fef-rv-field { display: flex; flex-direction: column; gap: 6px; }
.fef-rv-label { font-size: 0.875rem; font-weight: 600; color: var(--fef-rv-text); }
.fef-rv-req { color: var(--fef-rv-error); margin-left: 2px; }
.fef-rv-input, .fef-rv-textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--fef-rv-border);
    border-radius: 8px; font-size: 0.95rem; font-family: inherit; color: var(--fef-rv-text);
    background: var(--fef-rv-bg); transition: border-color .15s, box-shadow .15s;
}
.fef-rv-input:focus, .fef-rv-textarea:focus {
    outline: none; border-color: var(--fef-rv-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fef-rv-accent) 20%, transparent);
}
.fef-rv-textarea { resize: vertical; min-height: 90px; }
.fef-rv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fef-rv-check { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.fef-rv-guest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* star input */
.fef-rv-star-input { display: inline-flex; align-items: center; gap: 4px; }
.fef-rv-star-btn { background: none; border: 0; padding: 0 2px; cursor: pointer; font-size: 1.75rem; line-height: 1; }
.fef-rv-star-btn .fef-rv-star { font-size: 1.75rem; }
.fef-rv-star-input.has-value .fef-rv-star-btn:hover { transform: scale(1.05); }
.fef-rv-rating-label { margin-left: 10px; font-size: 0.85rem; font-weight: 600; color: var(--fef-rv-accent); min-width: 70px; }

/* live counter */
.fef-rv-counter { font-size: 0.78rem; text-align: right; color: var(--fef-rv-muted); font-variant-numeric: tabular-nums; }
.fef-rv-counter.is-green { color: var(--fef-rv-success); }
.fef-rv-counter.is-orange { color: var(--fef-rv-warn); }
.fef-rv-counter.is-red { color: var(--fef-rv-error); font-weight: 700; }

/* submit */
.fef-rv-form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fef-rv-submit {
    background: var(--fef-rv-accent); color: #fff; border: 0; padding: 12px 26px;
    border-radius: 8px; font-weight: 600; font-size: 0.95rem; cursor: pointer;
    transition: filter .15s, transform .1s;
}
.fef-rv-submit:hover { filter: brightness(1.05); }
.fef-rv-submit:active { transform: translateY(1px); }
.fef-rv-submit:disabled { opacity: .6; cursor: progress; }
.fef-rv-form-msg { font-size: 0.875rem; }
.fef-rv-form-msg.is-success { color: var(--fef-rv-success); }
.fef-rv-form-msg.is-error { color: var(--fef-rv-error); }
.fef-rv-form-trigger {
    background: var(--fef-rv-accent); color: #fff; border: 0; padding: 12px 26px;
    border-radius: 8px; font-weight: 600; cursor: pointer;
}
.fef-rv-locked { padding: 18px; text-align: center; background: var(--fef-rv-bg-soft); border-radius: var(--fef-rv-radius); color: var(--fef-rv-muted); }

/* verification step (email / OTP code entry) */
.fef-rv-verify { display: flex; flex-direction: column; gap: 10px; padding: 18px; border: 1px solid var(--fef-rv-border); border-radius: var(--fef-rv-radius); background: var(--fef-rv-bg-soft); }
.fef-rv-verify-msg { margin: 0 0 4px; font-size: 0.92rem; color: var(--fef-rv-text); }
.fef-rv-verify .fef-rv-vcode { letter-spacing: 6px; font-size: 1.2rem; text-align: center; font-family: monospace; max-width: 220px; }
.fef-rv-verify-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.fef-rv-resend { background: none; border: 1px solid var(--fef-rv-border); border-radius: 8px; padding: 10px 18px; cursor: pointer; color: var(--fef-rv-muted); font-size: 0.9rem; }
.fef-rv-resend:disabled { opacity: .6; cursor: default; }

/* ── MEDIA UPLOAD ──────────────────────────────────────────────────── */
.fef-rv-dropzone {
    position: relative; border: 2px dashed var(--fef-rv-border); border-radius: 10px;
    padding: 22px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s;
}
.fef-rv-dropzone.is-drag { border-color: var(--fef-rv-accent); background: color-mix(in srgb, var(--fef-rv-accent) 8%, transparent); }
.fef-rv-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fef-rv-dz-text { color: var(--fef-rv-muted); font-size: 0.9rem; }
.fef-rv-previews { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.fef-rv-preview { position: relative; width: 72px; height: 72px; border-radius: 8px; overflow: hidden; }
.fef-rv-preview img { width: 100%; height: 100%; object-fit: cover; }
.fef-rv-preview-x {
    position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; border: 0; border-radius: 50%;
    background: rgba(0,0,0,.6); color: #fff; cursor: pointer; line-height: 1; font-size: 14px;
}

/* ── REVIEW CARDS & LAYOUTS ────────────────────────────────────────── */
.fef-rv-items { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; position: relative; }
.fef-rv-items.is-loading { opacity: .5; pointer-events: none; }
.fef-rv-item {
    background: var(--fef-rv-bg); border: 1px solid var(--fef-rv-border);
    border-radius: var(--fef-rv-radius); padding: 18px 20px; transition: box-shadow .2s, opacity .25s;
}
.fef-rv-item.is-pending { border-style: dashed; opacity: .85; }
.fef-rv-item.is-featured { border-color: var(--fef-rv-accent); box-shadow: 0 0 0 1px var(--fef-rv-accent); }
.fef-rv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fef-rv-avatar img, .fef-rv-avatar-ph {
    width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; background: var(--fef-rv-bg-soft); font-weight: 700; color: var(--fef-rv-muted);
}
.fef-rv-meta { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.fef-rv-author { font-weight: 700; font-size: 0.95rem; }
.fef-rv-date { font-size: 0.78rem; color: var(--fef-rv-muted); }
.fef-rv-item-rating { margin-left: auto; font-size: 1rem; }
.fef-rv-title { margin: 12px 0 6px; font-size: 1.05rem; font-weight: 700; }
.fef-rv-text { font-size: 0.95rem; line-height: 1.6; color: var(--fef-rv-text); }
.fef-rv-text p { margin: 0 0 8px; }
.fef-rv-proscons { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0; font-size: 0.88rem; }
.fef-rv-pros { color: var(--fef-rv-success); }
.fef-rv-cons { color: var(--fef-rv-error); }
.fef-rv-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.fef-rv-thumb { width: 76px; height: 76px; border-radius: 8px; overflow: hidden; display: block; }
.fef-rv-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.fef-rv-thumb:hover img { transform: scale(1.06); }
.fef-rv-admin-reply {
    margin-top: 12px; padding: 12px 14px; background: var(--fef-rv-bg-soft);
    border-left: 3px solid var(--fef-rv-accent); border-radius: 0 8px 8px 0; font-size: 0.9rem;
}
.fef-rv-admin-reply-label { font-weight: 700; display: block; margin-bottom: 4px; }
.fef-rv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fef-rv-actions button {
    background: none; border: 1px solid var(--fef-rv-border); border-radius: 20px;
    padding: 6px 14px; font-size: 0.82rem; color: var(--fef-rv-muted); cursor: pointer;
    transition: all .15s;
}
.fef-rv-actions button:hover { border-color: var(--fef-rv-accent); color: var(--fef-rv-accent); }
.fef-rv-vote.is-voted { background: var(--fef-rv-accent); color: #fff; border-color: var(--fef-rv-accent); }
.fef-rv-pending-tag { display: inline-block; margin: 8px 0; font-size: 0.78rem; color: var(--fef-rv-warn); font-weight: 600; }
.fef-rv-empty { padding: 32px; text-align: center; color: var(--fef-rv-muted); }
.fef-rv-reply-box { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }

/* nested reply threads */
.fef-rv-replies { margin: 12px 0 0 0; padding-left: 20px; border-left: 2px solid var(--fef-rv-border); display: flex; flex-direction: column; gap: 12px; }
.fef-rv-item.fef-rv-reply { padding: 12px 14px; background: var(--fef-rv-bg-soft); border-radius: 10px; }
.fef-rv-item.fef-rv-reply .fef-rv-avatar img, .fef-rv-item.fef-rv-reply .fef-rv-avatar-ph { width: 34px; height: 34px; }
.fef-rv-item.fef-rv-reply .fef-rv-title { font-size: 0.95rem; }
.fef-rv-item.fef-rv-reply .fef-rv-text { font-size: 0.9rem; }
@media (max-width: 480px) { .fef-rv-replies { padding-left: 12px; } }

/* badges */
.fef-rv-badge {
    display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 12px;
    background: color-mix(in srgb, var(--fef-rv-success) 14%, transparent); color: var(--fef-rv-success);
}
.fef-rv-badge-featured { background: color-mix(in srgb, var(--fef-rv-accent) 16%, transparent); color: var(--fef-rv-accent); }
.fef-rv-badge-widget {
    display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 20px;
}

/* Grid layout */
.fef-rv-layout-grid { }
.fef-rv-list-wrap[data-layout="grid"] .fef-rv-items,
.fef-rv-items:has(.fef-rv-layout-grid) { display: grid; grid-template-columns: repeat(2, 1fr); }

/* Compact + minimal */
.fef-rv-layout-compact { padding: 12px 14px; }
.fef-rv-layout-compact .fef-rv-title { font-size: 0.95rem; margin: 6px 0 4px; }
.fef-rv-layout-minimal { border: 0; border-bottom: 1px solid var(--fef-rv-border); border-radius: 0; padding: 14px 0; }
.fef-rv-layout-minimal .fef-rv-avatar { display: none; }

/* Timeline */
.fef-rv-layout-timeline { position: relative; margin-left: 20px; border-left: 2px solid var(--fef-rv-border); border-radius: 0; }
.fef-rv-layout-timeline::before {
    content: ""; position: absolute; left: -27px; top: 22px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--fef-rv-accent);
}

/* ── SUMMARY ───────────────────────────────────────────────────────── */
.fef-rv-summary { display: flex; gap: 32px; flex-wrap: wrap; align-items: center; padding: 20px 0; }
.fef-rv-summary-score { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fef-rv-avg { font-size: 3rem; font-weight: 800; line-height: 1; }
.fef-rv-summary-score .fef-rv-stars { font-size: 1.25rem; }
.fef-rv-total { font-size: 0.9rem; color: var(--fef-rv-muted); }
.fef-rv-recommend-pct { font-size: 0.85rem; font-weight: 600; color: var(--fef-rv-success); }
.fef-rv-summary-bars { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 6px; }
.fef-rv-bar-row { display: flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; width: 100%; padding: 2px 0; }
.fef-rv-bar-label { font-size: 0.82rem; width: 28px; color: var(--fef-rv-muted); }
.fef-rv-bar { flex: 1; height: 8px; background: #eee; border-radius: 6px; overflow: hidden; }
.fef-rv-bar-fill { display: block; height: 100%; background: var(--fef-rv-accent); border-radius: 6px; transition: width .5s ease; }
.fef-rv-bar-count { font-size: 0.78rem; color: var(--fef-rv-muted); width: 32px; text-align: right; }

/* ── TOOLBAR ───────────────────────────────────────────────────────── */
.fef-rv-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--fef-rv-border); border-bottom: 1px solid var(--fef-rv-border); }
.fef-rv-sort-select { padding: 8px 12px; border: 1px solid var(--fef-rv-border); border-radius: 8px; background: var(--fef-rv-bg); font-size: 0.88rem; }
.fef-rv-filter { display: flex; gap: 6px; flex-wrap: wrap; }
.fef-rv-filter-star { border: 1px solid var(--fef-rv-border); background: var(--fef-rv-bg); border-radius: 8px; padding: 6px 12px; font-size: 0.82rem; cursor: pointer; }
.fef-rv-filter-star.is-active { background: var(--fef-rv-accent); color: #fff; border-color: var(--fef-rv-accent); }
.fef-rv-search { margin-left: auto; }
.fef-rv-search-input { padding: 8px 14px; border: 1px solid var(--fef-rv-border); border-radius: 20px; font-size: 0.88rem; min-width: 180px; }

/* ── LOAD MORE / PAGINATION ────────────────────────────────────────── */
.fef-rv-loadmore-wrap { text-align: center; margin-top: 20px; }
.fef-rv-loadmore { background: var(--fef-rv-bg); border: 1px solid var(--fef-rv-accent); color: var(--fef-rv-accent); padding: 11px 28px; border-radius: 24px; font-weight: 600; cursor: pointer; transition: all .15s; }
.fef-rv-loadmore:hover { background: var(--fef-rv-accent); color: #fff; }

/* ── COUNTER / STARS INLINE WIDGETS ────────────────────────────────── */
.fef-rv-stars-widget, .fef-rv-stars-inline { display: inline-flex; align-items: center; gap: 6px; }
.fef-rv-stars-val { font-weight: 700; }
.fef-rv-stars-count, .fef-rv-total { color: var(--fef-rv-muted); }

/* ── STATISTICS ────────────────────────────────────────────────────── */
.fef-rv-statistics { padding: 18px 0; }
.fef-rv-stat-headline { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fef-rv-stat-avg { font-size: 2.25rem; font-weight: 800; }
.fef-rv-stat-total { color: var(--fef-rv-muted); }
.fef-rv-stat-dist { display: flex; align-items: flex-end; gap: 16px; height: 140px; padding-top: 10px; }
.fef-rv-stat-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1; height: 100%; gap: 8px; }
.fef-rv-stat-bar { width: 60%; min-height: 3px; background: var(--fef-rv-accent); border-radius: 6px 6px 0 0; transition: height .5s ease; }
.fef-rv-stat-x { font-size: 0.8rem; color: var(--fef-rv-muted); }

/* monthly trend line chart */
.fef-rv-stat-trend { margin-top: 24px; }
.fef-rv-stat-trend-title { font-size: 0.85rem; font-weight: 600; color: var(--fef-rv-muted); margin-bottom: 8px; }
.fef-rv-trend-svg { width: 100%; height: 120px; display: block; overflow: visible; }
.fef-rv-trend-line { stroke: var(--fef-rv-accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.fef-rv-trend-area { fill: var(--fef-rv-accent); opacity: .12; }
.fef-rv-trend-dot { fill: var(--fef-rv-accent); }
.fef-rv-trend-labels { display: flex; justify-content: space-between; margin-top: 4px; }
.fef-rv-trend-x { font-size: 0.7rem; color: var(--fef-rv-muted); }

/* ── POPUP / SLIDE / FULLSCREEN ────────────────────────────────────── */
.fef-rv-popup { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.fef-rv-popup.is-open { opacity: 1; }
.fef-rv-popup-inner { position: relative; background: var(--fef-rv-bg, #fff); border-radius: 16px; padding: 28px; width: 92%; max-width: 560px;
    max-height: 88vh; overflow: auto; transform: translateY(16px) scale(.98); transition: transform .25s; }
.fef-rv-popup.is-open .fef-rv-popup-inner { transform: none; }
.fef-rv-popup-close { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border: 0; border-radius: 50%;
    background: var(--fef-rv-bg-soft, #f1f1f1); font-size: 20px; cursor: pointer; line-height: 1; }
.fef-rv-popup-slide { justify-content: flex-end; }
.fef-rv-popup-slide .fef-rv-popup-inner { border-radius: 0; height: 100vh; max-height: 100vh; width: 440px; transform: translateX(40px); }
.fef-rv-popup-slide.is-open .fef-rv-popup-inner { transform: none; }
.fef-rv-popup-fullscreen .fef-rv-popup-inner { width: 100%; max-width: 100%; height: 100vh; max-height: 100vh; border-radius: 0; }
.fef-rv-loading { text-align: center; padding: 40px; color: var(--fef-rv-muted); }

/* ── LIGHTBOX ──────────────────────────────────────────────────────── */
.fef-rv-lightbox { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.85); opacity: 0; transition: opacity .25s; }
.fef-rv-lightbox.is-open { opacity: 1; }
.fef-rv-lightbox img { max-width: 92%; max-height: 92%; border-radius: 8px; }
.fef-rv-lb-close { position: absolute; top: 20px; right: 24px; background: none; border: 0; color: #fff; font-size: 36px; cursor: pointer; }

/* ── TOAST ─────────────────────────────────────────────────────────── */
.fef-rv-toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); z-index: 100001;
    background: #1f2937; color: #fff; padding: 12px 22px; border-radius: 10px; font-size: 0.9rem; box-shadow: 0 8px 30px rgba(0,0,0,.25);
    opacity: 0; transition: opacity .3s, transform .3s; max-width: 90vw; }
.fef-rv-toast.show { opacity: 1; transform: translate(-50%, 0); }
.fef-rv-toast-success { background: var(--fef-rv-success, #16a34a); }
.fef-rv-toast-error { background: var(--fef-rv-error, #dc2626); }

/* ── MY REVIEWS ────────────────────────────────────────────────────── */
.fef-rv-myreviews { display: flex; flex-direction: column; gap: 14px; }
.fef-rv-myrev-item { border: 1px solid var(--fef-rv-border); border-radius: var(--fef-rv-radius); padding: 14px 16px; background: var(--fef-rv-bg); }
.fef-rv-myrev-top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fef-rv-myrev-top img { border-radius: 8px; }
.fef-rv-myrev-top a { font-weight: 600; text-decoration: none; color: var(--fef-rv-text); }
.fef-rv-myrev-actions { display: flex; gap: 8px; margin-top: 10px; }
.fef-rv-myrev-actions button { border: 1px solid var(--fef-rv-border); background: none; border-radius: 8px; padding: 6px 14px; cursor: pointer; font-size: 0.82rem; }
.fef-rv-status { font-size: 0.72rem; font-weight: 700; padding: 2px 10px; border-radius: 12px; margin-left: auto; }
.fef-rv-status-approved { background: #dcfce7; color: #166534; }
.fef-rv-status-pending { background: #fef3c7; color: #92400e; }
.fef-rv-status-rejected { background: #fee2e2; color: #991b1b; }

/* ═══ DARK MODE ════════════════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
    .fef-rv-form-widget, .fef-rv-list-widget, .fef-rv-list-wrap, .fef-rv-summary,
    .fef-rv-statistics, .fef-rv-myreviews-widget {
        --fef-rv-text: #e5e7eb; --fef-rv-muted: #9ca3af; --fef-rv-border: #374151;
        --fef-rv-bg: #1f2937; --fef-rv-bg-soft: #111827;
    }
}
.fef-rv-dark, .fef-rv-dark .fef-rv-form-widget, .fef-rv-dark .fef-rv-list-wrap {
    --fef-rv-text: #e5e7eb; --fef-rv-muted: #9ca3af; --fef-rv-border: #374151;
    --fef-rv-bg: #1f2937; --fef-rv-bg-soft: #111827;
}

/* ═══ RESPONSIVE ═══════════════════════════════════════════════════ */
@media (max-width: 782px) {
    .fef-rv-list-wrap[data-layout="grid"] .fef-rv-items { grid-template-columns: 1fr; }
    .fef-rv-summary { gap: 20px; }
    .fef-rv-avg { font-size: 2.4rem; }
    .fef-rv-toolbar { gap: 8px; }
    .fef-rv-search { margin-left: 0; width: 100%; }
    .fef-rv-search-input { width: 100%; }
    .fef-rv-guest { grid-template-columns: 1fr; }
    .fef-rv-item-rating { margin-left: 0; width: 100%; margin-top: 4px; }
    .fef-rv-popup-slide .fef-rv-popup-inner { width: 100%; }
}
@media (max-width: 480px) {
    .fef-rv-item { padding: 14px; }
    .fef-rv-star-btn, .fef-rv-star-btn .fef-rv-star { font-size: 1.9rem; } /* bigger tap targets */
    .fef-rv-actions button { padding: 8px 14px; } /* 44px-ish touch target */
    .fef-rv-thumb { width: 64px; height: 64px; }
    .fef-rv-summary-score { align-items: center; width: 100%; text-align: center; }
    .fef-rv-toast { left: 12px; right: 12px; transform: translateY(20px); max-width: none; }
    .fef-rv-toast.show { transform: translateY(0); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .fef-rv-bar-fill, .fef-rv-stat-bar, .fef-rv-item, .fef-rv-popup, .fef-rv-popup-inner,
    .fef-rv-toast, .fef-rv-lightbox { transition: none !important; }
}

/* ═══ ADMIN DASHBOARD ══════════════════════════════════════════════ */
.fef-rv-admin .fef-rv-cards { display: flex; gap: 16px; flex-wrap: wrap; margin: 20px 0; }
.fef-rv-admin .fef-rv-card {
    background: #fff; border: 1px solid #e2e4e7; border-radius: 10px; padding: 18px 24px;
    display: flex; flex-direction: column; gap: 4px; min-width: 130px;
}
.fef-rv-admin .fef-rv-card .n { font-size: 1.9rem; font-weight: 800; line-height: 1; }
.fef-rv-admin .fef-rv-card .l { font-size: 0.82rem; color: #646970; }
.fef-rv-admin .fef-rv-card.is-pending .n { color: #92400e; }
.fef-rv-admin .fef-rv-card.is-approved .n { color: #166534; }
.fef-rv-admin .fef-rv-card.is-rejected .n { color: #991b1b; }
.fef-rv-admin .fef-rv-bulkbar { display: flex; gap: 8px; align-items: center; margin: 14px 0; flex-wrap: wrap; }
.fef-rv-admin .fef-rv-queue td { vertical-align: middle; }
.fef-rv-admin .fef-rv-status { display: inline-block; }