/* ==========================================================================
   AnthroGate Verified — Reusable Cross-Service Avatar & Trust Badge Theme
   Shared across Admin Console, Carbon Events, BofA CashPro, Healthcare & MCP
   ========================================================================== */

.ag-id-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ag-id-card-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0.78rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(12, 26, 46, 0.78) 100%);
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: border-color 0.28s ease, box-shadow 0.28s ease, background 0.28s ease;
}

.ag-id-card-strip.is-verified {
  background: linear-gradient(135deg, rgba(10, 28, 44, 0.92) 0%, rgba(6, 42, 38, 0.62) 100%);
  border-color: rgba(104, 235, 131, 0.38);
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.12), inset 0 1px 0 rgba(106, 225, 234, 0.12);
}

.ag-avatar-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.45), rgba(71, 85, 105, 0.35));
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.25s ease;
}

.ag-avatar-wrap.ag-size-sm { width: 32px; height: 32px; }
.ag-avatar-wrap.ag-size-md { width: 42px; height: 42px; }
.ag-avatar-wrap.ag-size-lg { width: 50px; height: 50px; padding: 2.5px; }

.ag-avatar-wrap.is-verified {
  background: linear-gradient(135deg, #6AE1EA 0%, #68EB83 100%);
  box-shadow: 0 0 16px rgba(106, 225, 234, 0.35), 0 0 8px rgba(104, 235, 131, 0.28);
}

.ag-avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #0B1325;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ag-avatar-inner svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ag-avatar-corner-seal {
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  border: 1.5px solid #06103A;
  display: none;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.55);
}

.ag-size-sm .ag-avatar-corner-seal {
  width: 15px;
  height: 15px;
  right: -2px;
  bottom: -2px;
  border-width: 1.5px;
}

.ag-avatar-wrap.is-verified .ag-avatar-corner-seal {
  display: inline-flex;
  animation: agSealPop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes agSealPop {
  0% { transform: scale(0.4); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.ag-id-meta {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}

.ag-id-handle-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ag-id-handle {
  font-size: 0.88rem;
  font-weight: 600;
  color: #F8FAFC;
  letter-spacing: -0.01em;
}

.ag-header-profile-pill .ag-id-handle {
  font-size: 0.78rem;
}

.ag-id-sub {
  font-size: 0.74rem;
  color: #94A3B8;
  line-height: 1.35;
}

.ag-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.26rem 0.72rem 0.26rem 0.6rem;
  border-radius: 9999px;
  background: #06103a;
  border: 1px solid rgba(104, 235, 131, 0.48);
  color: #f5fffa;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.012em;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(6, 16, 58, 0.28);
  animation: agBadgeUnlock 0.38s ease-out;
}

.ag-verified-badge svg {
  flex-shrink: 0;
}

.ag-unverified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.62rem;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.1);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #94A3B8;
  font-size: 0.7rem;
  font-weight: 500;
  white-space: nowrap;
}

.ag-unverified-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #F59E0B;
}

@keyframes agBadgeUnlock {
  0% { opacity: 0; transform: translateY(2px) scale(0.95); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.ag-header-profile-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.24rem 0.65rem 0.24rem 0.28rem;
  border-radius: 9999px;
  background: rgba(6, 16, 58, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.ag-header-profile-pill.is-verified {
  border-color: rgba(104, 235, 131, 0.42);
  background: rgba(6, 22, 42, 0.94);
}

