/* صفحة التقييمات — ستايل بنفس ثيم الموقع */
.page-hero{
  padding: 26px 0 18px;
}
.page-hero .kicker{
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .2px;
  margin-bottom: 8px;
}
.page-hero h1{
  font-size: clamp(26px, 3vw, 36px);
  margin: 0 0 10px;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.reviews-shell{
  display: grid;
  gap: 14px;
}

.stats-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0,1fr));
}
@media (max-width: 900px){
  .stats-grid{ grid-template-columns: 1fr; }
}

.stat-card{
  padding: 14px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), var(--panel));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat-card .label{
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 6px;
}
.stat-card .value{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .2px;
}
.stat-card .hint{
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.tabs{
  display:flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tab-btn{
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.tab-btn:hover{ transform: translateY(-1px); }
.tab-btn.active{
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.toolbar .right{
  display:flex;
  gap: 8px;
  align-items:center;
  flex-wrap: wrap;
}
.toolbar input[type="search"]{
  min-width: min(340px, 100%);
}

.reviews-grid{
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0,1fr));
}
@media (max-width: 900px){
  .reviews-grid{ grid-template-columns: 1fr; }
}

.review-card{
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.review-card::before{
  content:"";
  position:absolute;
  inset:-2px -2px auto -2px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 35%, transparent));
  opacity: .65;
}
.review-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 10px;
}
.review-meta{
  display:flex;
  gap: 10px;
  align-items:center;
}
.avatar{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border: 1px solid var(--border);
  display:grid;
  place-items:center;
  font-weight: 900;
}
.name{
  font-weight: 900;
  margin: 0;
  line-height: 1.2;
}
.sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}
.stars{
  display:flex;
  gap: 2px;
  align-items:center;
}
.star{
  width: 18px;
  height: 18px;
  display:inline-grid;
  place-items:center;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.18));
}
.star svg{
  width: 18px;
  height: 18px;
  fill: color-mix(in srgb, var(--accent) 75%, #fff);
  stroke: color-mix(in srgb, var(--accent) 85%, #fff);
  stroke-width: 1.1px;
  opacity: .35;
}
.star.filled svg{ opacity: 1; }

.review-body{
  margin-top: 10px;
  color: color-mix(in srgb, var(--text) 92%, var(--muted));
  line-height: 1.7;
}

.empty{
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border);
  background: color-mix(in srgb, var(--panel) 85%, transparent);
  color: var(--muted);
  text-align: center;
}
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display:none;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 999;
}
.modal-backdrop.show{ display:flex; }
.modal{
  width: min(720px, 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0,0,0,.45);
  overflow: hidden;
}
.modal header{
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.modal header h3{
  margin: 0;
  font-size: 16px;
}
.modal .body{
  padding: 16px;
  display:grid;
  gap: 12px;
}
.modal .actions{
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display:flex;
  justify-content:flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.modal .row{
  display:grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 720px){
  .modal .row{ grid-template-columns: 1fr; }
}
