.resident-points-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 20px;
}

.resident-scanner-video-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(212, 174, 96, 0.12), rgba(8, 11, 18, 0.96));
  min-height: 260px;
}

.resident-scanner-video {
  width: 100%;
  min-height: 260px;
  max-height: 380px;
  display: block;
  object-fit: cover;
  background: #090c11;
}

.resident-scanner-frame {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(62%, 300px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(241, 211, 139, 0.92);
  border-radius: 24px;
  box-shadow: 0 0 0 9999px rgba(7, 8, 12, 0.26);
  pointer-events: none;
}

#residentScanStatus[data-tone="success"] {
  border-color: rgba(113, 193, 142, 0.4);
  color: #d8f2de;
}

#residentScanStatus[data-tone="error"] {
  border-color: rgba(215, 110, 110, 0.4);
  color: #ffd8d8;
}

.resident-scan-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: end;
}

.resident-target-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.resident-target-card.is-empty {
  opacity: 0.92;
}

.resident-target-main {
  display: flex;
  gap: 14px;
  align-items: center;
}

.resident-target-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #f5efe2;
  background: radial-gradient(circle at top, rgba(212, 174, 96, 0.34), rgba(34, 36, 44, 0.95));
  border: 1px solid rgba(241, 211, 139, 0.25);
}

.resident-target-main h4 {
  margin: 0;
  font-size: 1.35rem;
}

.resident-target-main p {
  margin: 6px 0 0;
  color: rgba(245, 239, 226, 0.72);
}

.resident-target-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.resident-outlet-chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resident-outlet-chip {
  min-width: 0;
}

.resident-spend-list {
  display: grid;
  gap: 12px;
}

.resident-spend-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.012));
}

.resident-spend-row__main {
  display: grid;
  gap: 4px;
}

.resident-spend-row__main strong {
  font-size: 1rem;
}

.resident-spend-row__main span,
.resident-spend-row__sub span {
  color: rgba(245, 239, 226, 0.72);
}

.resident-spend-row__meta {
  text-align: right;
  display: grid;
  gap: 4px;
}

.resident-spend-row__meta strong {
  color: #f1d38b;
}

.resident-spend-row__sub {
  grid-column: 1 / -1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

@media (max-width: 960px) {
  .resident-points-grid {
    grid-template-columns: 1fr;
  }

  .resident-target-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .resident-scan-input-row {
    grid-template-columns: 1fr;
  }

  .resident-scanner-video-wrap,
  .resident-scanner-video {
    min-height: 220px;
  }

  .resident-spend-row {
    grid-template-columns: 1fr;
  }

  .resident-spend-row__meta {
    text-align: left;
  }
}

#rewardCodeUseStatus[data-tone="success"] {
  border-color: rgba(113, 193, 142, 0.4);
  color: #d8f2de;
}

#rewardCodeUseStatus[data-tone="error"] {
  border-color: rgba(215, 110, 110, 0.4);
  color: #ffd8d8;
}


.resident-scanner-video-wrap--reward {
  min-height: 220px;
}

.resident-scanner-frame--wide {
  width: min(78%, 360px);
  aspect-ratio: 1.15;
}
