/**
 * trust-page.css
 * The public Trust Page: constellation visual, recent deals list,
 * and the WhatsApp-style testimonial cards.
 */

/* CONSTELLATION signature */
.const-section {
  padding: 70px 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 10px;
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 26px;
}

.const-panel {
  background: radial-gradient(ellipse at 30% 20%, rgba(124, 111, 255, .13), transparent 60%), var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
}

#constellation {
  width: 100%;
  height: auto;
  display: block;
}

.star-tip {
  fill: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  padding: 5px 11px;
  border-radius: 100px;
  width: fit-content;
  letter-spacing: .03em;
}

.status-completed {
  background: rgba(94, 234, 212, .12);
  color: var(--cyan);
  border: 1px solid rgba(94, 234, 212, .3);
}

.status-process {
  background: rgba(124, 111, 255, .12);
  color: var(--violet);
  border: 1px solid rgba(124, 111, 255, .3);
}

.status-pending {
  background: rgba(245, 196, 83, .12);
  color: var(--gold);
  border: 1px solid rgba(245, 196, 83, .3);
}

.status-dispute {
  background: rgba(255, 107, 129, .12);
  color: var(--rose);
  border: 1px solid rgba(255, 107, 129, .3);
}

/* TESTIMONIALS — WA chat screenshot style */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testi-chat-card {
  background: #0B141A;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}

.tc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #182229;
  padding: 12px 14px;
  border-bottom: 1px solid #000;
}

.tc-back {
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
}

.tc-avatar {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: #080B14;
}

.tc-title {
  flex: 1;
  min-width: 0;
}

.tc-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tc-sub {
  font-size: 10px;
  color: var(--muted);
}

.tc-icons {
  color: var(--muted);
  font-size: 15px;
  letter-spacing: 2px;
}

.tc-body {
  position: relative;
  padding: 18px 14px 6px;
  min-height: 210px;
  background: radial-gradient(circle at 82% 8%, rgba(124, 111, 255, .1), transparent 55%), #0B141A;
  overflow: hidden;
}

.tc-watermark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: rgba(245, 196, 83, .055);
  transform: rotate(-16deg);
  letter-spacing: .04em;
  white-space: nowrap;
  pointer-events: none;
}

.tc-bubble {
  background: #0B4A3E;
  color: #E7FCE9;
  border-radius: 10px 10px 2px 10px;
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 90%;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.tc-bubble .tc-time {
  display: block;
  text-align: right;
  font-size: 9px;
  color: #9FDFC3;
  margin-top: 6px;
}

.tc-reply {
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.tc-reply-name {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: rgba(245, 196, 83, .12);
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 7px;
}

.tc-reply-text {
  font-size: 12px;
  color: #D3D8E8;
  line-height: 1.55;
  margin-bottom: 7px;
}

.tc-reply-meta {
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.tc-footer {
  padding: 14px;
  border-top: 1px solid #000;
  text-align: center;
  background: #0E1720;
}

.tc-caption {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .02em;
  background: linear-gradient(120deg, var(--cyan), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tc-caption-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  color: var(--muted);
  margin-top: 3px;
}

/* Real uploaded testimonial photo card (used on the Trust Page once
   the admin has uploaded at least one photo via the dashboard CMS). */
.testi-photo-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.testi-photo-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #0B141A;
}

.testi-photo-body {
  padding: 16px 18px 18px;
}

.testi-photo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  margin-bottom: 6px;
}

.testi-photo-caption {
  font-size: 12.5px;
  line-height: 1.6;
  color: #D3D8E8;
  margin-bottom: 12px;
}

.testi-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 46px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
}

/* Text + star-rating review card (no photo required) — used when a
   testimonial has a rating but no uploaded image. */
.review-card {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #080B14;
  flex-shrink: 0;
}

.review-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 13.5px;
}

.review-stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-top: 2px;
}

.review-text {
  font-size: 13px;
  line-height: 1.65;
  color: #D3D8E8;
  margin-bottom: 14px;
  white-space: pre-line;
}

.review-reply {
  background: var(--bg-panel-2);
  border-left: 2px solid var(--violet);
  border-radius: 0 8px 8px 0;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.review-reply-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 6px;
}

.review-reply-text {
  font-size: 12.5px;
  line-height: 1.55;
  color: #C7CCDC;
}
