/* ST4R Public Feedback V4 — compact cards + one-by-one popup
   Changes ONLY #feedback public review area. */

#feedback .st4r-public-reviews{
  padding:22px !important;
}

#feedback .st4r-public-reviews-head{
  margin-bottom:16px !important;
  padding-bottom:15px !important;
}

#feedback .st4r-public-review-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important;
  align-items:start !important;
}

#feedback .st4r-public-review-card{
  position:relative !important;
  height:190px !important;
  min-height:190px !important;
  padding:14px !important;
  border-radius:16px !important;
  overflow:hidden !important;
  cursor:pointer !important;
  display:flex !important;
  flex-direction:column !important;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease !important;
}

#feedback .st4r-public-review-card:hover{
  transform:translateY(-2px) !important;
  border-color:rgba(132,118,255,.34) !important;
  box-shadow:0 16px 34px rgba(0,0,0,.22),0 0 0 1px rgba(115,95,255,.04) inset !important;
}

#feedback .st4r-public-review-avatar{
  width:40px !important;
  height:40px !important;
  border-radius:12px !important;
}

#feedback .st4r-public-review-user{
  gap:9px !important;
}

#feedback .st4r-public-review-user b{
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:900 !important;
}

#feedback .st4r-public-review-user small{
  margin-top:3px !important;
  font-size:8.5px !important;
  line-height:1.2 !important;
}

#feedback .st4r-public-review-stars{
  font-size:12px !important;
  letter-spacing:1px !important;
}

#feedback .st4r-public-review-category{
  margin-top:10px !important;
  padding:5px 8px !important;
  font-size:7px !important;
}

#feedback .st4r-public-review-card > p{
  display:-webkit-box !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  overflow:hidden !important;
  min-height:0 !important;
  margin:10px 0 8px !important;
  color:#c7d0e6 !important;
  font-size:12.5px !important;
  line-height:1.5 !important;
  font-weight:500 !important;
  white-space:pre-line !important;
}

#feedback .st4r-public-review-verified{
  margin-top:auto !important;
  padding-top:7px !important;
  font-size:7px !important;
  letter-spacing:.11em !important;
}

#feedback .st4r-feedback-open{
  position:absolute;
  right:12px;
  bottom:10px;
  border:0;
  background:transparent;
  color:#9da9ff;
  font:900 7px/1 inherit;
  letter-spacing:.12em;
  text-transform:uppercase;
  pointer-events:none;
  opacity:.9;
}

#feedback .st4r-public-review-card .st4r-public-review-verified{
  padding-right:82px !important;
}

/* Popup */
.st4r-feedback-modal{
  position:fixed;
  inset:0;
  z-index:999999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(2,5,16,.76);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.st4r-feedback-modal.is-open{
  display:flex;
}

.st4r-feedback-modal-card{
  position:relative;
  width:min(720px,94vw);
  max-height:min(78vh,720px);
  overflow:auto;
  padding:28px;
  border:1px solid rgba(132,150,226,.22);
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 0%,rgba(103,82,255,.18),transparent 34%),
    linear-gradient(155deg,rgba(14,18,45,.98),rgba(5,8,24,.99));
  box-shadow:0 32px 100px rgba(0,0,0,.55);
}

.st4r-feedback-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:38px;
  height:38px;
  border:1px solid rgba(140,157,225,.17);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:#e8edff;
  font-size:22px;
  line-height:1;
  cursor:pointer;
}

.st4r-feedback-modal-user{
  display:flex;
  align-items:center;
  gap:12px;
  padding-right:52px;
}

.st4r-feedback-modal-avatar{
  width:52px;
  height:52px;
  flex:0 0 auto;
  border-radius:15px;
  overflow:hidden;
  border:1px solid rgba(145,162,232,.2);
  background:linear-gradient(135deg,#6a56ff,#278ee8);
}

.st4r-feedback-modal-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.st4r-feedback-modal-avatar span{
  width:100%;
  height:100%;
  display:grid;
  place-items:center;
  font-size:18px;
  font-weight:950;
  color:#fff;
}

.st4r-feedback-modal-user b{
  display:block;
  color:#f4f6ff;
  font-size:18px;
  line-height:1.2;
}

.st4r-feedback-modal-user small{
  display:block;
  margin-top:5px;
  color:#7f8cac;
  font-size:11px;
}

.st4r-feedback-modal-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-top:18px;
  padding-bottom:16px;
  border-bottom:1px solid rgba(139,157,220,.12);
}

.st4r-feedback-modal-category{
  display:inline-flex;
  padding:7px 10px;
  border:1px solid rgba(115,135,210,.16);
  border-radius:999px;
  background:rgba(84,91,177,.10);
  color:#a7b3d9;
  font-size:9px;
  font-weight:950;
  letter-spacing:.14em;
}

.st4r-feedback-modal-stars{
  color:#ffd65f;
  font-size:17px;
  letter-spacing:1.5px;
}

.st4r-feedback-modal-body{
  margin:20px 0 18px;
  color:#e3e8f6;
  font-size:16px;
  line-height:1.72;
  white-space:pre-line;
  word-break:break-word;
}

.st4r-feedback-modal-verified{
  display:flex;
  align-items:center;
  gap:7px;
  color:#8997b9;
  font-size:9px;
  font-weight:900;
  letter-spacing:.12em;
}

.st4r-feedback-modal-verified i{
  width:6px;
  height:6px;
  border-radius:50%;
  background:#71f0ad;
  box-shadow:0 0 10px rgba(113,240,173,.5);
}

.st4r-feedback-modal-nav{
  display:flex;
  justify-content:space-between;
  gap:12px;
  margin-top:22px;
}

.st4r-feedback-modal-nav button{
  min-width:118px;
  padding:11px 15px;
  border:1px solid rgba(132,151,226,.17);
  border-radius:12px;
  background:rgba(255,255,255,.035);
  color:#dce3f7;
  font-size:11px;
  font-weight:900;
  cursor:pointer;
}

.st4r-feedback-modal-nav button:hover{
  border-color:rgba(132,118,255,.38);
  background:rgba(97,83,220,.10);
}

.st4r-feedback-modal-count{
  align-self:center;
  color:#71809f;
  font-size:10px;
  font-weight:800;
  letter-spacing:.08em;
}

@media(max-width:1000px){
  #feedback .st4r-public-review-grid{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}

@media(max-width:680px){
  #feedback .st4r-public-review-grid{
    grid-template-columns:1fr !important;
  }
  #feedback .st4r-public-review-card{
    height:184px !important;
    min-height:184px !important;
  }
  .st4r-feedback-modal{
    padding:14px;
  }
  .st4r-feedback-modal-card{
    padding:22px 18px 18px;
    border-radius:20px;
  }
  .st4r-feedback-modal-body{
    font-size:15px;
  }
}
