/* ============================================================
   REVIEWS-POPUP CSS · FachTap Gold/Schwarz
   Verifizierte Kundenstimmen + ✓-Badge
   ============================================================ */

#reviewsPopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
#reviewsPopup.rp-show { display: flex; }

.rp-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rp-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(160deg, #0f0e0a 0%, #161410 60%, #1a1710 100%);
  border: 1px solid rgba(212,160,23,0.22);
  border-radius: 28px;
  padding: 28px 22px 24px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.7),
    0 0 0 1px rgba(212,160,23,0.08),
    inset 0 1px 0 rgba(212,160,23,0.07);
  animation: rpEnter 0.4s cubic-bezier(0.34,1.56,0.64,1) forwards;
  scrollbar-width: thin;
  scrollbar-color: rgba(212,160,23,0.2) transparent;
}
.rp-card::-webkit-scrollbar { width: 4px; }
.rp-card::-webkit-scrollbar-thumb { background: rgba(212,160,23,0.2); border-radius: 4px; }

.rp-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, #D4A017, #ffe066, #D4A017, transparent);
}

@keyframes rpEnter {
  from { opacity:0; transform:scale(0.88) translateY(24px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

/* ── Close ── */
.rp-close {
  position: absolute; top:14px; right:14px;
  width:30px; height:30px;
  background: rgba(212,160,23,0.07);
  border: 1px solid rgba(212,160,23,0.18);
  border-radius: 50%;
  color: rgba(212,160,23,0.6);
  cursor: pointer;
  display: flex; align-items:center; justify-content:center;
  transition: background 0.2s, color 0.2s;
  z-index: 2;
}
.rp-close:hover { background: rgba(212,160,23,0.18); color: #ffe066; }

/* ── Header ── */
.rp-header { text-align:center; margin-bottom:18px; }
.rp-header-icon {
  font-size:30px;
  margin-bottom:6px;
  filter: drop-shadow(0 0 14px rgba(212,160,23,0.45));
}
.rp-title {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size:22px; font-weight:600; color:#f5e6b8;
  margin: 0 0 4px;
  letter-spacing: 0.01em;
}
.rp-title em {
  font-style: italic;
  background: linear-gradient(180deg, #fff3c4, #d4a73a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rp-subtitle {
  font-size:12px;
  color: rgba(245,241,232,0.55);
  margin: 0;
}

/* ── Stats Row ── */
.rp-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 0 16px;
  border-top: 1px solid rgba(212,160,23,0.1);
  border-bottom: 1px solid rgba(212,160,23,0.1);
  margin-bottom: 18px;
}
.rp-stats__col {
  text-align: center;
}
.rp-stats__value {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 24px;
  font-weight: 600;
  color: #f5e6b8;
  line-height: 1;
}
.rp-stats__label {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,241,232,0.45);
  margin-top: 4px;
}
.rp-stats__divider {
  width: 1px;
  height: 28px;
  background: rgba(212,160,23,0.18);
}
.rp-stats__stars {
  color: #e5c158;
  letter-spacing: 1px;
  font-size: 13px;
}

/* ── Reviews List ── */
.rp-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 14px;
}

.rp-item {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(212,160,23,0.12);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
}
.rp-item.is-verified {
  border-color: rgba(229,193,88,0.32);
  background: linear-gradient(160deg, rgba(229,193,88,0.04), rgba(255,255,255,0.02));
}

.rp-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.rp-item__name {
  font-size: 13px;
  font-weight: 600;
  color: rgba(245,241,232,0.85);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.rp-item__name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rp-item__when {
  font-size: 11px;
  color: rgba(245,241,232,0.4);
  flex-shrink: 0;
}

.rp-item__stars {
  color: #e5c158;
  font-size: 13px;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.rp-item__stars-empty {
  color: rgba(245,241,232,0.18);
}

.rp-item__comment {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(245,241,232,0.78);
  margin: 0;
}

/* ── Verified Badge ── */
.rp-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f5e6b8, #d4a73a);
  color: #0a0800;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 8px rgba(229,193,88,0.4);
  flex-shrink: 0;
}
.rp-verified-badge svg {
  width: 9px;
  height: 9px;
}

/* ── Empty State ── */
.rp-empty {
  text-align: center;
  padding: 32px 12px;
}
.rp-empty__icon {
  font-size: 40px;
  margin-bottom: 10px;
  opacity: 0.7;
}
.rp-empty__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #f5e6b8;
  margin-bottom: 6px;
}
.rp-empty__text {
  font-size: 12px;
  color: rgba(245,241,232,0.5);
  line-height: 1.55;
}

/* ── Loading ── */
.rp-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 0;
  color: rgba(212,160,23,0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rp-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  margin-left: 10px;
  border-radius: 50%;
  border: 2px solid rgba(212,160,23,0.2);
  border-top-color: rgba(212,160,23,0.7);
  animation: rpSpin 0.8s linear infinite;
}
@keyframes rpSpin {
  to { transform: rotate(360deg); }
}

/* ── Trust Footer ── */
.rp-trust {
  text-align: center;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(212,160,23,0.1);
  margin-top: 6px;
}
.rp-trust__text {
  font-size: 11px;
  color: rgba(245,241,232,0.42);
  line-height: 1.5;
  margin: 0;
}
.rp-trust__text strong {
  color: rgba(245,230,184,0.7);
  font-weight: 600;
}

/* ── Mobile Refinements ── */
@media (max-width: 420px) {
  .rp-card { padding: 24px 18px 20px; border-radius: 24px; }
  .rp-title { font-size: 20px; }
  .rp-stats__value { font-size: 21px; }
  .rp-item { padding: 12px 14px; }
}
