/* Stack (React Bits draggable/fan card stack) themed for CubePass «نظرات شما» */
.stack {
  position: relative;
  width: 100%;
  height: 100%;
  outline: none;
}

.stack:focus-visible .stack-card[data-top] .stack-card-face {
  outline: 2px solid #4a6fff;
  outline-offset: 4px;
}

.stack-card {
  position: absolute;
  inset: 0;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.stack-card-face {
  position: absolute;
  inset: 0;
  overflow: hidden;
  will-change: transform;
}

.stack-card-content {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.stack-card-shade {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}

/* «نظرات شما» section above blog */
.your-reviews-section {
  padding: 2.2rem 0 1.2rem;
  overflow: hidden;
}

.your-reviews-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 28px;
}

.your-reviews-stack-wrap {
  width: min(100%, 420px);
  height: 270px;
  position: relative;
}

.yr-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
  border-radius: inherit;
  background:
    radial-gradient(90% 80% at 15% 10%, rgba(74, 111, 255, 0.2) 0%, rgba(74, 111, 255, 0) 65%),
    linear-gradient(155deg, #161b2a 0%, #0f131f 100%);
  border: 1px solid rgba(115, 139, 255, 0.2);
  color: #f8fafc;
  text-align: right;
  direction: rtl;
}

.yr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.yr-stars {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: #fbbf24;
  font-size: 0.85rem;
}

.yr-stars .far {
  color: rgba(255, 255, 255, 0.22);
}

.yr-product {
  max-width: 62%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(74, 111, 255, 0.16);
  border: 1px solid rgba(115, 139, 255, 0.26);
  color: #b4c4ff;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yr-quote {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  color: #e2e8f0;
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.85;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.yr-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.yr-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 800;
}

.yr-author i {
  color: #8fa4ff;
  font-size: 0.9rem;
}

.yr-hint {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 600;
}

:root[data-theme="light"] .yr-card {
  background:
    radial-gradient(90% 80% at 15% 10%, rgba(62, 105, 254, 0.12) 0%, rgba(62, 105, 254, 0) 65%),
    linear-gradient(155deg, #ffffff 0%, #f3f6ff 100%);
  border-color: rgba(62, 105, 254, 0.18);
  color: #0f172a;
}

:root[data-theme="light"] .yr-stars .far {
  color: #cbd5e1;
}

:root[data-theme="light"] .yr-product {
  background: rgba(62, 105, 254, 0.1);
  border-color: rgba(62, 105, 254, 0.22);
  color: #3157d5;
}

:root[data-theme="light"] .yr-quote {
  color: #1e293b;
}

:root[data-theme="light"] .yr-card-foot {
  border-top-color: rgba(15, 23, 42, 0.08);
}

:root[data-theme="light"] .yr-author {
  color: #0f172a;
}

:root[data-theme="light"] .yr-author i {
  color: #3157d5;
}

:root[data-theme="light"] .yr-hint {
  color: #64748b;
}

@media (max-width: 520px) {
  .your-reviews-stack-wrap {
    width: min(100%, 320px);
    height: 255px;
  }

  .yr-card {
    padding: 18px;
  }

  .yr-quote {
    font-size: 0.88rem;
    line-height: 1.75;
  }
}
