/* ===========================
   MODAL MEU PERFIL
   =========================== */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(6px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.2s ease-out;
}
.profile-modal-overlay.hidden { display: none; }
.profile-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  animation: modalSlideIn 0.25s ease-out;
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.profile-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}
.profile-modal-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}
.profile-modal-close {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--surface-2);
  color: var(--text-3);
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s;
}
.profile-modal-close:hover { background: var(--surface-3); color: var(--text); }

.profile-modal-body { padding: 20px 24px; }

/* Foto Section */
.profile-photo-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.profile-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
  overflow: hidden;
  border: 3px solid var(--blue-border);
  margin-bottom: 10px;
}
.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-photo-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 12px;
  border-radius: 6px;
  transition: all 0.18s;
}
.profile-photo-btn:hover { background: var(--blue-bg); }

/* Fields */
.profile-fields { display: flex; flex-direction: column; gap: 14px; }
.profile-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}
.profile-field input {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.88rem;
  outline: none;
  transition: all 0.18s;
}
.profile-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 46, 90, 0.08);
  background: var(--surface);
}
.profile-field input::placeholder { color: var(--text-4); }

/* Unidades */
.profile-unidades { display: flex; flex-direction: column; gap: 8px; }
.profile-unit-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-unit-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-4);
  min-width: 62px;
  flex-shrink: 0;
}
.profile-unit-input {
  flex: 1;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  outline: none;
  transition: all 0.18s;
}
.profile-unit-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 46, 90, 0.08);
  background: var(--surface);
}
.profile-unit-input::placeholder { color: var(--text-4); }
.profile-unit-remove {
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-4);
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.18s;
}
.profile-unit-remove:hover { background: var(--red-bg); color: var(--red); border-color: var(--red-border); }
.profile-add-unit-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  background: none;
  border: 1.5px dashed var(--blue-border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  margin-top: 6px;
  transition: all 0.18s;
}
.profile-add-unit-btn:hover { background: var(--blue-bg); border-style: solid; }

/* Footer */
.profile-modal-footer {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--border);
}
.profile-save-btn {
  width: 100%;
  padding: 13px;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s;
}
.profile-save-btn:hover { opacity: 0.9; }
.profile-save-btn:active { transform: scale(0.98); }
