/* =====================================================================
   REVIEWS — list, summary, form and single-review page (self-contained)
   ===================================================================== */
.rv-page {
  margin: 0;
  background: #0d0d11;
  color: #f2f2f5;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

.rv-page *,
.rv-page *::before,
.rv-page *::after {
  box-sizing: border-box;
}

.rv-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.rv-page p,
.rv-page h2,
.rv-page h3 {
  opacity: 1;
  transform: none;
}

/* ---------- stars ---------- */
.stars {
  position: relative;
  display: inline-block;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 2px;
  white-space: nowrap;
}

.stars__bg {
  color: #3a3a45;
}

.stars__fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #ffc107;
  text-shadow: 0 0 12px rgba(255, 193, 7, 0.45);
}

/* ---------- summary ---------- */
.rv-summary {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr auto;
  gap: 34px;
  align-items: center;
  margin: 10px 0 46px;
  padding: 34px 38px;
  background: linear-gradient(180deg, #18181f, #121218);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 32px 8px 32px 8px;
  box-shadow: 0 30px 70px -30px rgba(255, 193, 7, 0.18);
}

.rv-summary__score {
  text-align: center;
}

.rv-summary__score b {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(3.4rem, 8vw, 4.8rem);
  font-weight: 800;
  line-height: 1;
  color: #ffc107;
  text-shadow: 0 0 34px rgba(255, 193, 7, 0.4);
}

.rv-summary__score .stars {
  margin: 10px 0 6px;
  font-size: 1.4rem;
}

.rv-summary__score span.rv-count {
  display: block;
  font-size: 0.9rem;
  color: #a9a9b6;
}

.rv-dist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rv-dist li {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  gap: 12px;
  align-items: center;
  font-size: 0.85rem;
  color: #a9a9b6;
}

.rv-dist__bar {
  height: 8px;
  overflow: hidden;
  background: #23232c;
  border-radius: 999px;
}

.rv-dist__bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ffe259, #ff9800);
  border-radius: inherit;
}

.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  color: #14100a;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(120deg, #ffe259, #ffc107 55%, #ff9800);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 30px -8px rgba(255, 193, 7, 0.65);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rv-btn:hover {
  color: #14100a;
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -8px rgba(255, 193, 7, 0.8);
}

.rv-btn[disabled] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

/* ---------- list & cards ---------- */
.rv-list {
  display: grid;
  gap: 24px;
}

.rv-card {
  position: relative;
  padding: 28px 30px 22px;
  background: linear-gradient(180deg, #18181f, #121218);
  border: 1px solid rgba(255, 193, 7, 0.16);
  border-radius: 28px 8px 28px 8px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.rv-card:nth-child(even) {
  border-radius: 8px 28px 8px 28px;
}

.rv-card:hover {
  border-color: rgba(255, 193, 7, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 26px 56px -24px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 193, 7, 0.12);
}

.rv-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rv-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  color: #14100a;
  background: linear-gradient(135deg, #ffe259, #ff9800);
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%);
}

.rv-card__who {
  flex: 1 1 160px;
  min-width: 0;
}

.rv-card__name {
  display: block;
  color: #fff;
  overflow-wrap: anywhere;
}

.rv-card__company {
  display: block;
  font-size: 0.85rem;
  color: #a2a2ad;
}

.rv-card__title {
  margin: 18px 0 8px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.rv-card__title a {
  color: inherit;
  text-decoration: none;
}

.rv-card__title a:hover {
  color: #ffc107;
}

.rv-card__body {
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.75;
  color: #d0d0da;
  overflow-wrap: anywhere;
}

.rv-card__title + .rv-card__body {
  margin-top: 0;
}

.rv-media {
  display: block;
  margin-top: 18px;
}

.rv-media img,
.rv-media video {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: #000;
}

.rv-media video {
  max-height: 440px;
}

.rv-card__reply {
  margin-top: 18px;
  padding: 14px 18px;
  font-size: 0.93rem;
  line-height: 1.65;
  color: #d0d0da;
  background: rgba(255, 193, 7, 0.07);
  border-left: 3px solid #ffc107;
  border-radius: 4px 14px 14px 4px;
}

.rv-card__reply b {
  display: block;
  margin-bottom: 4px;
  font-size: 0.82rem;
  color: #ffc107;
}

.rv-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 18px;
  padding-top: 14px;
  font-size: 0.84rem;
  color: #8b8b98;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.rv-card__foot a {
  color: #ffc107;
  text-decoration: none;
  word-break: break-all;
}

.rv-card__foot a:hover {
  text-decoration: underline;
}

.rv-card__verified {
  color: #6be39a;
}

.rv-card__foot time {
  margin-left: auto;
}

.rv-empty {
  padding: 50px 20px;
  text-align: center;
  color: #a9a9b6;
  background: #15151b;
  border: 1px dashed rgba(255, 193, 7, 0.3);
  border-radius: 24px;
}

.rv-pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.rv-pages a,
.rv-pages span {
  min-width: 42px;
  padding: 10px 14px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  color: #d0d0da;
  background: #1a1a22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.rv-pages a:hover {
  color: #ffc107;
  border-color: #ffc107;
}

.rv-pages span[aria-current] {
  color: #14100a;
  background: #ffc107;
  border-color: #ffc107;
}

/* ---------- write a review ---------- */
.rv-form-sec {
  margin: 76px auto 100px;
  scroll-margin-top: 90px;
}

.rv-form-sec h2 {
  margin: 0 0 8px;
  font-family: 'Poppins', 'Inter', sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #fff;
}

.rv-form-sec > p.rv-form-lead {
  margin: 0 0 26px;
  max-width: 640px;
  color: #a9a9b6;
}

.rv-form {
  padding: 36px 34px;
  background: linear-gradient(180deg, #18181f, #121218);
  border: 1px solid rgba(255, 193, 7, 0.2);
  border-radius: 32px 8px 32px 8px;
}

.rv-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.rv-field {
  margin-bottom: 20px;
  min-width: 0;
}

.rv-field > label,
.rv-field > .rv-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #a9a9b6;
}

.rv-field .opt {
  font-weight: 400;
  color: #6b6b76;
}

.rv-field .hint {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #6f6f7c;
}

.rv-field input[type="text"],
.rv-field input[type="email"],
.rv-field input[type="url"],
.rv-field textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: inherit;
  font-size: 0.95rem;
  color: #fff;
  background: #1c1c24;
  border: 1px solid rgba(255, 193, 7, 0.16);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rv-field input:focus,
.rv-field textarea:focus {
  outline: none;
  border-color: #ffc107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.14);
}

.rv-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* star picker (CSS only, keyboard accessible) */
.rv-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 4px;
}

.rv-rate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rv-rate label {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1;
  color: #3a3a45;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

.rv-rate label:hover,
.rv-rate label:hover ~ label,
.rv-rate input:checked ~ label {
  color: #ffc107;
  text-shadow: 0 0 14px rgba(255, 193, 7, 0.5);
}

.rv-rate label:hover {
  transform: scale(1.15);
}

.rv-rate input:focus-visible + label {
  outline: 2px solid #ffc107;
  outline-offset: 3px;
  border-radius: 6px;
}

/* file picker */
.rv-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  background: #1c1c24;
  border: 1px dashed rgba(255, 193, 7, 0.4);
  border-radius: 14px;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.rv-file:hover {
  background: #21212b;
  border-color: #ffc107;
}

.rv-file input {
  display: none;
}

.rv-file i {
  font-size: 1.4rem;
  color: #ffc107;
}

.rv-file span {
  min-width: 0;
  font-size: 0.9rem;
  color: #d0d0da;
  overflow-wrap: anywhere;
}

.rv-file-preview {
  display: none;
  max-width: 220px;
  max-height: 150px;
  margin-top: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
}

.rv-note {
  margin: 14px 0 0;
  font-size: 0.82rem;
  text-align: center;
  color: #7c7c88;
}

.rv-note i {
  margin-right: 6px;
  color: #ffc107;
}

/* ---------- single review page ---------- */
.rv-single {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 30px;
}

.rv-single .rv-card:hover {
  transform: none;
}

.rv-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-weight: 600;
  color: #ffc107;
  text-decoration: none;
}

.rv-back:hover {
  text-decoration: underline;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .rv-summary {
    grid-template-columns: 1fr;
    gap: 26px;
    padding: 28px 22px;
  }
  .rv-summary .rv-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .rv-wrap {
    padding: 0 14px;
  }
  .rv-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .rv-form {
    padding: 26px 18px;
  }
  .rv-card {
    padding: 22px 18px 18px;
  }
  .rv-card__foot time {
    margin-left: 0;
  }
  .rv-rate label {
    font-size: 2rem;
  }
}
