/* Customer Identity & Trust */
.dr-cit-dashboard {
  display: grid;
  gap: 18px;
}

.dr-cit-dashboard-card,
.dr-cit-last-order,
.dr-cit-upload-card {
  border: 1px solid color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 9%, transparent);
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 16px 42px color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 6%, transparent);
}

.dr-cit-dashboard-card {
  padding: clamp(18px, 4vw, 28px);
}

.dr-cit-profile {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}

.dr-cit-avatar {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--drwe-c-brand, rgb(29,78,216)) 18%, transparent);
  background: linear-gradient(145deg, var(--drwe-c-tint, #eef4ff), #ffffff);
  color: var(--drwe-c-deep, #1842a3);
  font-size: 0.95rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: 0;
}

.dr-cit-avatar--circle {
  border-radius: 999px;
}

.dr-cit-avatar--rounded {
  border-radius: 16px;
}

.dr-cit-avatar__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.dr-cit-eyebrow {
  margin: 0 0 4px;
  color: var(--drwe-c-muted, #667085);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dr-cit-title {
  margin: 0;
  color: var(--drwe-c-ink, #111827);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.dr-cit-subtitle {
  max-width: 760px;
  margin: 8px 0 0;
  color: #475467;
  font-size: 0.96rem;
  line-height: 1.55;
}

.dr-cit-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dr-cit-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 8%, transparent);
  border-radius: 999px;
  background: var(--drwe-c-tint, #f6f8fb);
  color: #344054;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.dr-cit-badge--verified {
  border-color: rgba(21, 128, 61, 0.18);
  background: #ecfdf3;
  color: #067647;
}

.dr-cit-card-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.dr-cit-button,
.dr-cit-upload-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 11%, transparent);
  border-radius: 12px;
  background: #ffffff;
  color: var(--drwe-c-ink, #111827);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.15;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dr-cit-button:hover,
.dr-cit-upload-button:hover {
  border-color: color-mix(in srgb, var(--drwe-c-brand, rgb(29,78,216)) 28%, transparent);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 7%, transparent);
  transform: translateY(-1px);
}

.dr-cit-button--primary {
  border-color: var(--drwe-c-brand, #1d4ed8);
  background: var(--drwe-c-brand, #1d4ed8);
  color: #ffffff;
}

.dr-cit-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.dr-cit-stat {
  min-height: 82px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 8%, transparent);
  border-radius: 16px;
  background: var(--drwe-c-tint, #fafbfc);
}

.dr-cit-stat span {
  display: block;
  color: var(--drwe-c-muted, #667085);
  font-size: 0.78rem;
  font-weight: 750;
}

.dr-cit-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--drwe-c-ink, #101828);
  font-size: 1.45rem;
  line-height: 1;
}

.dr-cit-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dr-cit-quick-action {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--drwe-c-ink, rgb(17,24,39)) 8%, transparent);
  border-radius: 16px;
  background: #ffffff;
  color: var(--drwe-c-ink, #111827);
  font-weight: 850;
  text-decoration: none;
}

.dr-cit-quick-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #f2f4f7;
  color: var(--drwe-c-brand, #1d4ed8);
  font-weight: 900;
}

.dr-cit-last-order {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 18px;
}

.dr-cit-last-order h3 {
  margin: 0;
  color: var(--drwe-c-ink, #111827);
  font-size: 1.06rem;
  letter-spacing: 0;
}

.dr-cit-last-order p:not(.dr-cit-eyebrow) {
  margin: 4px 0 0;
  color: var(--drwe-c-muted, #667085);
}

.dr-cit-upload-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin: 0 0 16px;
  padding: 18px;
}

.dr-cit-upload-content h3 {
  margin: 0;
  color: var(--drwe-c-ink, #111827);
  font-size: 1rem;
  letter-spacing: 0;
}

.dr-cit-upload-content p {
  margin: 6px 0 12px;
  color: var(--drwe-c-muted, #667085);
  font-size: 0.9rem;
  line-height: 1.45;
}

.dr-cit-upload-input {
  width: 0.1px;
  height: 0.1px;
  position: absolute;
  overflow: hidden;
  opacity: 0;
  z-index: -1;
}

.dr-cit-remove-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #475467;
  font-size: 0.9rem;
  font-weight: 700;
}

.dr-cit-review-avatar {
  float: left;
  margin-right: 14px;
}

.dr-cit-review-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.dr-cit-review-author {
  color: var(--drwe-c-ink, #111827);
}

.dr-cit-review-date {
  color: var(--drwe-c-muted, #667085);
  font-size: 0.86rem;
}

@media (min-width:768px) {
  .dr-cit-profile {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dr-cit-card-actions {
    grid-column: auto;
    justify-content: flex-end;
  }

  .dr-cit-stat-grid,
  .dr-cit-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width:479px) {
  .dr-cit-dashboard-card,
  .dr-cit-last-order,
  .dr-cit-upload-card {
    border-radius: 16px;
  }

  .dr-cit-upload-card {
    grid-template-columns: 1fr;
  }

  .dr-cit-card-actions,
  .dr-cit-button,
  .dr-cit-upload-button {
    width: 100%;
  }
}
