.furnado-page { scroll-behavior: smooth; }
.reviews-hero { background-image: linear-gradient(rgba(9,13,22,.74), rgba(9,13,22,.74)), url('https://images.unsplash.com/photo-1565538810643-b5bdb714032a?auto=format&fit=crop&w=1400&q=60'); }
.hero-button { margin-top: 20px; }
#moderation, #add-review, .review-card { scroll-margin-top: 110px; }
.count-pill { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: 30px; background: var(--blue); color: #fff; font-weight: 900; }
.panel-empty { padding: 22px 28px; color: var(--muted); }
.pending-grid { padding: 24px; }

.stars { direction: ltr; unicode-bidi: isolate; display: inline-block; color: #d7dee8; font-size: 20px; letter-spacing: 2px; line-height: 1; transform: scaleX(-1); }
.stars > span { color: #f59e0b; }

.rating-summary { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 36px; align-items: center; margin-bottom: 30px; padding: 30px 36px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 12px 40px rgba(15,23,42,.05); animation: fadeUp .6s ease both; }
.summary-score { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.summary-score strong { font-size: 60px; font-weight: 900; line-height: 1.1; }
.summary-score .stars { font-size: 26px; }
.summary-score > span:last-child { color: var(--muted); font-size: 14px; font-weight: 700; }
.bar-row { display: grid; grid-template-columns: 44px 1fr 36px; align-items: center; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; }
.bar-row:hover:not(:disabled), .bar-row[aria-pressed="true"] { background: #eef2ff; }
.bar-row:disabled { opacity: .5; cursor: default; }
.bar { height: 9px; overflow: hidden; border-radius: 10px; background: #eef1f6; }
.bar i { display: block; height: 100%; border-radius: 10px; background: #f59e0b; animation: grow 1s ease both; transform-origin: right; }
@keyframes grow { from { transform: scaleX(0); } }

.review-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.review-filters { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.review-filter { padding: 9px 18px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; white-space: nowrap; cursor: pointer; transition: .25s; }
.review-filter.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.sort { font-size: 13px; font-weight: 700; }
.sort select { margin-right: 8px; padding: 9px 12px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 14px; }

.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.review-card { position: relative; min-width: 0; padding: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; transition: box-shadow .35s, border-color .35s; animation: fadeUp .6s cubic-bezier(.2,.7,.2,1) backwards; animation-delay: var(--delay, 0ms); }
.review-card:hover { box-shadow: 0 18px 40px rgba(15,23,42,.1); }
.review-card.is-pinned { border-color: #a5b4fc; background: linear-gradient(#f8f9ff, #fff 45%); }
.review-card.is-pending { border: 2px dashed #f59e0b; }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head > div { min-width: 0; }
.review-head h3 { font-size: 16px; font-weight: 800; overflow-wrap: anywhere; }
.review-head time { color: var(--muted); font-size: 12px; }
.avatar { display: grid; flex: 0 0 48px; place-items: center; height: 48px; border-radius: 50%; background: linear-gradient(135deg, #0022EE, #0095FF); color: #fff; font-size: 20px; font-weight: 900; }
.pin-badge { margin-right: auto; padding: 3px 12px; border-radius: 30px; background: #eef2ff; color: var(--blue); font-size: 11px; font-weight: 800; white-space: nowrap; }
.review-rating { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin: 16px 0 12px; }
.review-card blockquote { color: #334155; font-size: 15px; line-height: 2; overflow-wrap: anywhere; }
.review-photos { display: flex; gap: 10px; margin-top: 16px; }
.review-photos a { width: 76px; height: 76px; overflow: hidden; border-radius: 12px; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; }
.company-reply { margin-top: 18px; padding: 14px 16px; border-right: 4px solid var(--blue); border-radius: 12px; background: #f5f7ff; font-size: 14px; line-height: 1.9; overflow-wrap: anywhere; }
.company-reply strong { color: var(--blue); }
.review-admin { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); }
.review-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.review-buttons form { flex: 1; }
.review-buttons .btn { width: 100%; padding: 8px 12px; font-size: 13px; }
.review-admin summary { margin-top: 12px; color: var(--blue); font-size: 13px; font-weight: 800; cursor: pointer; }
.review-admin textarea { display: block; width: 100%; margin: 10px 0; padding: 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 16px; }

.review-form-box { max-width: 780px; margin: 60px auto 0; padding: 40px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 16px 50px rgba(0,34,238,.07); }
.form-head { margin-bottom: 26px; text-align: center; }
.form-head h2 { color: var(--blue); font-size: clamp(20px, 4vw, 26px); font-weight: 900; }
.form-head p, .hint.center { color: var(--muted); font-size: 14px; text-align: center; }
.hint.center { margin: 12px 0 0; }
.form-head p { margin-top: 6px; }
.review-form-box .field { display: block; margin-bottom: 18px; font-size: 13px; font-weight: 700; min-width: 0; }
.review-form-box .field em, .star-input em { color: #dc2626; font-style: normal; }
.review-form-box .field :is(input:not([type="file"]), select, textarea) { display: block; width: 100%; height: auto; margin-top: 7px; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: var(--ink); font-size: 16px; }
.review-form-box .field textarea { resize: vertical; line-height: 1.8; }
.review-form-box .field :is(input, select, textarea):focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,34,238,.12); outline: 0; }
.review-form-box small { color: var(--muted); font-weight: 400; }
.star-input { margin-bottom: 24px; border: 0; text-align: center; }
.star-input legend { width: 100%; margin-bottom: 6px; font-size: 14px; font-weight: 800; text-align: center; }
/* النجوم مرتبة من 5 إلى 1 واتجاهها من اليسار حتى تمتلئ من اليمين */
.star-input > div { display: flex; justify-content: center; direction: ltr; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { padding: 0 5px; color: #d7dee8; font-size: 44px; line-height: 1.2; cursor: pointer; transition: color .15s, transform .15s; }
.star-input label b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.star-input input:checked ~ label { color: #f59e0b; }
.star-input div:hover label { color: #d7dee8; }
.star-input div label:hover, .star-input div label:hover ~ label { color: #f59e0b; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 3px solid rgba(0,34,238,.45); border-radius: 8px; }
.star-input output { display: block; min-height: 24px; color: #92400e; font-size: 13px; font-weight: 800; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

@media (max-width: 600px) {
    .rating-summary { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 22px 16px; }
    .review-filters { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 6px; }
    .review-card { padding: 20px 16px; }
    .pending-grid { padding: 14px; }
    .review-form-box { padding: 24px 16px; }
    .star-input label { font-size: 40px; }
}
