/* Clefkey — vault-profile-a.css */
/* ── Profil ──────────────────────────────────────────── */
.profile-view {
  padding: 0.5rem clamp(1.25rem, 5vw, 2.75rem) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
  box-sizing: border-box;
}

.profile-banner {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-secondary);
  width: 100%;
  max-width: 640px;
}

.profile-banner-decor {
  display: none;
}

.profile-banner-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.65rem;
  padding: 2rem 1.5rem 1.5rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  border: none;
  margin-bottom: 0.25rem;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.65rem 0.2rem 0.45rem;
  background: var(--success-subtle);
  border: 1px solid color-mix(in srgb, var(--success) 25%, transparent);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--success);
}

.profile-status-dev {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.25);
  color: var(--warning);
}

.profile-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

.profile-status-dev .profile-status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

.profile-banner-inner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.25;
  color: var(--text-primary);
}

.profile-email-line {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 100%;
}

.profile-banner-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  background: var(--bg-secondary);
  background: color-mix(in srgb, var(--bg-secondary) 75%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.profile-chip svg,
.profile-chip .lucide {
  width: 15px;
  height: 15px;
  color: var(--accent-light);
  flex-shrink: 0;
}

.profile-chip strong {
  color: var(--text-primary);
  font-family: var(--font-display);
}

.profile-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 640px;
}

.profile-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  margin-bottom: 1.15rem;
  text-align: left;
}

.profile-card-header h3 {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.profile-card-header h3 svg,
.profile-card-header h3 .lucide {
  width: 18px;
  height: 18px;
  color: var(--accent-light);
}

.profile-fields {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 1.5rem;
}

.profile-field {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 0 0.65rem;
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  min-height: 52px;
}

.profile-field.is-editing {
  grid-column: 1 / -1;
  align-items: start;
  padding: 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
}

.profile-field:hover {
  border-color: transparent;
}

.profile-field-icon {
  grid-column: 1;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  padding: 0;
  margin-top: 1.15rem;
}

.profile-field-icon svg,
.profile-field-icon .lucide { width: 16px; height: 16px; }

.profile-field-body {
  grid-column: 2;
  flex: 1;
  min-width: 0;
}

.profile-field-view {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-height: 36px;
}

.profile-field-value-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  min-height: 32px;
}

.profile-field-value-row .profile-field-value {
  flex: 1;
  min-width: 0;
}

.profile-field-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  margin-left: 0;
  height: 32px;
}

.profile-field-edit,
.profile-field-actions .profile-field-copy.btn-copy-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  background: none;
  border: none;
  border-radius: var(--radius-xs);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 0;
}

.profile-field-edit svg,
.profile-field-edit .lucide,
.profile-field-actions .profile-field-copy.btn-copy-field svg,
.profile-field-actions .profile-field-copy.btn-copy-field .lucide {
  width: 15px;
  height: 15px;
}

.profile-field-edit:hover,
.profile-field-actions .profile-field-copy.btn-copy-field:hover {
  color: var(--accent-light);
  background: none;
  border: none;
}

